diff --git a/src/de/steamwar/misslewars/items/Missile.java b/src/de/steamwar/misslewars/items/Missile.java index 706977c..e2ba485 100644 --- a/src/de/steamwar/misslewars/items/Missile.java +++ b/src/de/steamwar/misslewars/items/Missile.java @@ -53,7 +53,7 @@ public class Missile extends SpecialItem { static { try { - tnt = WorldEdit.getInstance().getBlockFactory().parseFromListInput("minecraft:tnt", new ParserContext()); + tnt = WorldEdit.getInstance().getBlockFactory().parseFromListInput("tnt", new ParserContext()); } catch (Exception e) { } @@ -119,6 +119,9 @@ public class Missile extends SpecialItem { } private int count() { + if (tnt.isEmpty()) { + return 0; + } return WorldEdit.getInstance().getEditSessionFactory().getEditSession(world, -1).countBlocks(clipboard.getRegion(), tnt); }