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
1 changed files with 2 additions and 2 deletions

View File

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