reduced max amount of blocks from explosions
This commit is contained in:
parent
0c5ec503be
commit
2871446f74
@ -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());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user