reduced max amount of blocks from explosions

This commit is contained in:
Chiss 2014-11-23 15:01:04 +11:00
parent 0c5ec503be
commit 2871446f74

View File

@ -336,8 +336,8 @@ public class Explosion extends MiniPlugin
if (blocks.get(cur).getValue() == 0 || blocks.get(cur).getValue() == 3)
continue;
double chance = 0.2 + (double)_explosionBlocks.size()/(double)120;
if (Math.random() > Math.min(0.95, chance))
double chance = 0.2 + (double)_explosionBlocks.size()/(double)80;
if (Math.random() > Math.min(0.98, chance))
{
FallingBlock fall = cur.getWorld().spawnFallingBlock(cur.getLocation().add(0.5, 0.5, 0.5), blocks.get(cur).getKey(), blocks.get(cur).getValue());