prevent STATIONARY_LAVA from breaking in creeper smash
This commit is contained in:
parent
6dc7384c82
commit
b7476cec5e
@ -148,7 +148,7 @@ public class PerkCreeperExplode extends SmashPerk
|
|||||||
//Blocks
|
//Blocks
|
||||||
Collection<Block> blocks = UtilBlock.getInRadius(player.getLocation(), 12).keySet();
|
Collection<Block> blocks = UtilBlock.getInRadius(player.getLocation(), 12).keySet();
|
||||||
for(Block bl : blocks)
|
for(Block bl : blocks)
|
||||||
if(bl.getType() == Material.LAVA || bl.getType() == Material.BEDROCK) blocks.remove(bl);
|
if(bl.getType() == Material.STATIONARY_LAVA || bl.getType() == Material.LAVA || bl.getType() == Material.BEDROCK) blocks.remove(bl);
|
||||||
|
|
||||||
Manager.GetExplosion().BlockExplosion(blocks, player.getLocation(), false);
|
Manager.GetExplosion().BlockExplosion(blocks, player.getLocation(), false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user