FOOIFY IS A NOOB OKAY

This commit is contained in:
fooify 2015-07-01 16:10:41 -07:00
parent 4495468c7f
commit 04c863c0eb

View File

@ -147,10 +147,12 @@ public class PerkCreeperExplode extends SmashPerk
//Blocks
Collection<Block> blocks = UtilBlock.getInRadius(player.getLocation(), 12).keySet();
synchronized(blocks)
{
for(Block bl : blocks)
if(bl.getType() == Material.STATIONARY_LAVA || bl.getType() == Material.LAVA || bl.getType() == Material.BEDROCK) blocks.remove(bl);
Iterator<Block> iter = blocks.iterator();
while (iter.hasNext()) {
Block b = iter.next();
if(b.getType() == Material.STATIONARY_LAVA || b.getType() == Material.LAVA || b.getType() == Material.BEDROCK) blocks.remove(b);
}
Manager.GetExplosion().BlockExplosion(blocks, player.getLocation(), false);