From 349948dfda569376e20548b8b91e5a7fa695c2f6 Mon Sep 17 00:00:00 2001 From: jojo Date: Fri, 18 Sep 2020 21:50:30 +0200 Subject: [PATCH] Fix Missle Info --- src/de/steamwar/misslewars/items/Missile.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/misslewars/items/Missile.java b/src/de/steamwar/misslewars/items/Missile.java index e721375..42f2c48 100644 --- a/src/de/steamwar/misslewars/items/Missile.java +++ b/src/de/steamwar/misslewars/items/Missile.java @@ -26,10 +26,13 @@ import com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard; import com.sk89q.worldedit.extent.clipboard.Clipboard; import com.sk89q.worldedit.extent.clipboard.io.ClipboardFormat; import com.sk89q.worldedit.extent.clipboard.io.ClipboardFormats; +import com.sk89q.worldedit.extent.transform.BlockTransformExtent; import com.sk89q.worldedit.function.mask.BlockTypeMask; +import com.sk89q.worldedit.function.operation.ForwardExtentCopy; import com.sk89q.worldedit.function.operation.Operations; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.math.transform.AffineTransform; +import com.sk89q.worldedit.math.transform.Identity; import com.sk89q.worldedit.session.ClipboardHolder; import com.sk89q.worldedit.world.World; import com.sk89q.worldedit.world.block.BlockType; @@ -130,11 +133,21 @@ public class Missile extends SpecialItem { return st.toString(); } + private static boolean logged = false; + private int count() { int tntCount = 0; + if (!logged) { + Bukkit.getLogger().log(Level.SEVERE, clipboard.toString()); + Bukkit.getLogger().log(Level.SEVERE, clipboard.getDimensions().toString()); + Bukkit.getLogger().log(Level.SEVERE, clipboard.getRegion().toString()); + Bukkit.getLogger().log(Level.SEVERE, clipboard.getMinimumPoint().toString()); + Bukkit.getLogger().log(Level.SEVERE, clipboard.getMaximumPoint().toString()); + Bukkit.getLogger().log(Level.SEVERE, clipboard.getBlock(BlockVector3.at(0, 0, 0)).toString()); + } + logged = true; BlockArrayClipboard arrayClipboard = (BlockArrayClipboard)clipboard; BlockVector3 dimensions = arrayClipboard.getDimensions(); - Bukkit.getLogger().log(Level.SEVERE, arrayClipboard.getBlock(BlockVector3.at(0, 0, 0)).getBlockType().toString()); for (int x = 0; x < dimensions.getX(); x++) { for (int y = 0; y < dimensions.getY(); y++) { for (int z = 0; z < dimensions.getZ(); z++) {