fix for error when deleting a gate with no blocks
This commit is contained in:
1 parent
bf083106d9
commit
f57338c2c3
1 file changed
+5
-2
@@ -134,8 +134,11 @@ public class Gate
|
||||
{
|
||||
Set<Block> blocks = FloodUtil.getGateFrameBlocks(from.getBlock());
|
||||
|
||||
for (Block block : blocks)
|
||||
block.setType(Material.AIR);
|
||||
if (blocks != null)
|
||||
{
|
||||
for (Block block : blocks)
|
||||
block.setType(Material.AIR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user