diff --git a/src/org/mcteam/ancientgates/Gate.java b/src/org/mcteam/ancientgates/Gate.java index face817..0a309e9 100644 --- a/src/org/mcteam/ancientgates/Gate.java +++ b/src/org/mcteam/ancientgates/Gate.java @@ -134,8 +134,11 @@ public class Gate { Set blocks = FloodUtil.getGateFrameBlocks(from.getBlock()); - for (Block block : blocks) - block.setType(Material.AIR); + if (blocks != null) + { + for (Block block : blocks) + block.setType(Material.AIR); + } } }