From 9ae87a6ed8af57117947fd8575d41ddc88f8ecdd Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 30 Nov 2024 08:34:02 -0800 Subject: [PATCH] Remove debug --- .../bentobox/twerk/listeners/TreeGrowListener.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/world/bentobox/twerk/listeners/TreeGrowListener.java b/src/main/java/world/bentobox/twerk/listeners/TreeGrowListener.java index 9d6ebdc..d278093 100644 --- a/src/main/java/world/bentobox/twerk/listeners/TreeGrowListener.java +++ b/src/main/java/world/bentobox/twerk/listeners/TreeGrowListener.java @@ -72,11 +72,11 @@ public class TreeGrowListener implements Listener { } private static final Map SAPLING_TO_BIG_TREE_TYPE; static { - Map conv = new EnumMap<>(Material.class); - conv.put(Material.DARK_OAK_SAPLING, TreeType.DARK_OAK); - conv.put(Material.SPRUCE_SAPLING, TreeType.MEGA_REDWOOD); - conv.put(Material.JUNGLE_SAPLING, TreeType.JUNGLE); - SAPLING_TO_BIG_TREE_TYPE = Collections.unmodifiableMap(conv); + Map conv2 = new EnumMap<>(Material.class); + conv2.put(Material.DARK_OAK_SAPLING, TreeType.DARK_OAK); + conv2.put(Material.SPRUCE_SAPLING, TreeType.MEGA_REDWOOD); + conv2.put(Material.JUNGLE_SAPLING, TreeType.JUNGLE); + SAPLING_TO_BIG_TREE_TYPE = Collections.unmodifiableMap(conv2); } private static final Random RAND = new Random(); @@ -135,7 +135,6 @@ protected void growTree(Block b) { } if (SAPLING_TO_TREE_TYPE.containsKey(t)) { TreeType type = SAPLING_TO_TREE_TYPE.getOrDefault(b.getType(), TreeType.TREE); - BentoBox.getInstance().logDebug("Setting " + b + " mat " + t + " to air"); b.setType(Material.AIR); if (b.getWorld().generateTree(b.getLocation(), RAND, type, (Predicate) this::checkPlace)) { if (addon.getSettings().isEffectsEnabled()) {