prevent STATIONARY_LAVA from breaking in creeper smash

This commit is contained in:
fooify 2015-07-01 08:25:17 -07:00
parent 6dc7384c82
commit b7476cec5e

View File

@ -148,7 +148,7 @@ public class PerkCreeperExplode extends SmashPerk
//Blocks
Collection<Block> blocks = UtilBlock.getInRadius(player.getLocation(), 12).keySet();
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);