From 4c82cb3cd4e849a5ff8388a2f2e03be8a7500597 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 26 Sep 2020 21:45:08 +0200 Subject: [PATCH] Remove Missile tntCount saving --- src/de/steamwar/misslewars/items/Missile.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/de/steamwar/misslewars/items/Missile.java b/src/de/steamwar/misslewars/items/Missile.java index 3f02abf..cd6b00c 100644 --- a/src/de/steamwar/misslewars/items/Missile.java +++ b/src/de/steamwar/misslewars/items/Missile.java @@ -31,7 +31,6 @@ import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.math.transform.AffineTransform; import com.sk89q.worldedit.session.ClipboardHolder; import com.sk89q.worldedit.world.World; -import com.sk89q.worldedit.world.block.BlockType; import com.sk89q.worldedit.world.block.BlockTypes; import de.steamwar.misslewars.MissileWars; import org.bukkit.Bukkit; @@ -54,7 +53,6 @@ public class Missile extends SpecialItem { private final Clipboard clipboard; private final ItemStack item; - private final int tntCount; private Missile(File missileFile) { String[] strings = missileFile.getName().split("\\."); @@ -77,8 +75,7 @@ public class Missile extends SpecialItem { EditSession e = WorldEdit.getInstance().getEditSessionFactory().getEditSession(world, -1); BlockTypeMask blockTypeMask = new BlockTypeMask(clipboard, BlockTypes.TNT); - tntCount = e.countBlocks(clipboard.getRegion(), blockTypeMask); - lore.add("§7TNT §8: §e" + tntCount); + lore.add("§7TNT §8: §e" + e.countBlocks(clipboard.getRegion(), blockTypeMask)); item = createItem(itemType, "§c" + name, 1, lore, false); }