From b30c03958877d3e3daf5f8adbeca971208540ce1 Mon Sep 17 00:00:00 2001 From: rbluer <665978+rbluer@users.noreply.github.com> Date: Sun, 7 Jul 2024 19:42:00 -0400 Subject: [PATCH] Prison NBT: removed debug code which was generating a lot of entries in the logs. --- docs/changelog_v3.3.x.md | 3 +++ .../mcprison/prison/spigot/nbt/PrisonNBTUtil.java | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/changelog_v3.3.x.md b/docs/changelog_v3.3.x.md index ca823c1ef..a15e4fe74 100644 --- a/docs/changelog_v3.3.x.md +++ b/docs/changelog_v3.3.x.md @@ -17,6 +17,9 @@ These change logs represent the work that has been going on within prison. # 3.3.0-alpha.18b 2024-07-07 +* **Prison NBT: removed debug code which was generating a lot of entries in the logs.** + + * **Mine bombs: Setup throwing of mine bombs.** The mine bombs can now be thrown. If they don't land within the mine, then they are not removed from the player's inventory. The check for the mine is performed where the block lands. The throwing velocity can be controlled in the settings of each mine bomb; the higher the value, the farther the player can throw the bomb, which can easily be outside of the mine. diff --git a/prison-spigot/src/main/java/tech/mcprison/prison/spigot/nbt/PrisonNBTUtil.java b/prison-spigot/src/main/java/tech/mcprison/prison/spigot/nbt/PrisonNBTUtil.java index 99aa3ea9d..abdc67c7f 100644 --- a/prison-spigot/src/main/java/tech/mcprison/prison/spigot/nbt/PrisonNBTUtil.java +++ b/prison-spigot/src/main/java/tech/mcprison/prison/spigot/nbt/PrisonNBTUtil.java @@ -99,9 +99,9 @@ public static void setNBTString( ItemStack bukkitStack, String key, String value nbt.setString(key, value); }); - if ( isEnableDebugLogging() ) { - nbtDebugLog( bukkitStack, "setNBTString" ); - } +// if ( isEnableDebugLogging() ) { +// nbtDebugLog( bukkitStack, "setNBTString" ); +// } } catch (Exception e) { Output.get().logInfo( @@ -139,9 +139,9 @@ public static void setNBTBoolean( ItemStack bukkitStack, String key, boolean val nbt.setBoolean(key, value); }); - if ( isEnableDebugLogging() ) { - nbtDebugLog( bukkitStack, "setNBTBoolean" ); - } +// if ( isEnableDebugLogging() ) { +// nbtDebugLog( bukkitStack, "setNBTBoolean" ); +// } } catch (Exception e) { Output.get().logInfo(