FOOIFY IS A NOOB OKAY
This commit is contained in:
parent
4495468c7f
commit
04c863c0eb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user