diff --git a/src/de/warking/bausystem/world/RegionListener.java b/src/de/warking/bausystem/world/RegionListener.java index 63a1661..432acc2 100644 --- a/src/de/warking/bausystem/world/RegionListener.java +++ b/src/de/warking/bausystem/world/RegionListener.java @@ -72,7 +72,7 @@ public class RegionListener implements Listener { public void onExplode(EntityExplodeEvent e) { UUID worldOwner = BauWorld.getWorldUUID(e.getLocation().getWorld()); - if(worldOwner == null || !Bauwelt.getBauwelt(worldOwner).isTNTDmg()) + if(worldOwner == null || Bauwelt.getBauwelt(worldOwner) == null || !Bauwelt.getBauwelt(worldOwner).isTNTDmg()) e.setCancelled(true); } @@ -80,7 +80,7 @@ public class RegionListener implements Listener { public void onFireDamage(BlockBurnEvent e) { UUID worldOwner = BauWorld.getWorldUUID(e.getBlock().getWorld()); - if(worldOwner == null || !Bauwelt.getBauwelt(worldOwner).isFireDmg()) + if(worldOwner == null || Bauwelt.getBauwelt(worldOwner) == null || !Bauwelt.getBauwelt(worldOwner).isFireDmg()) e.setCancelled(true); }