fix for error when deleting a gate with no blocks

This commit is contained in:
Tobias Ottenweller 2012-02-29 21:19:33 +01:00
parent bf083106d9
commit f57338c2c3

View File

@ -134,10 +134,13 @@ public class Gate
{
Set<Block> blocks = FloodUtil.getGateFrameBlocks(from.getBlock());
if (blocks != null)
{
for (Block block : blocks)
block.setType(Material.AIR);
}
}
}
//----------------------------------------------//