From e2a8770142764b14d9d76f2f28ff82e5e6af85ed Mon Sep 17 00:00:00 2001 From: jojo Date: Sun, 6 Sep 2020 19:00:53 +0200 Subject: [PATCH] Fix Missle Info --- src/de/steamwar/misslewars/items/Missile.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }