Skip to content

Commit

Permalink
Remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Nov 30, 2024
1 parent a30f4ef commit 9ae87a6
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ public class TreeGrowListener implements Listener {
}
private static final Map<Material, TreeType> SAPLING_TO_BIG_TREE_TYPE;
static {
Map<Material, TreeType> 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<Material, TreeType> 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();
Expand Down Expand Up @@ -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<BlockState>) this::checkPlace)) {
if (addon.getSettings().isEffectsEnabled()) {
Expand Down

0 comments on commit 9ae87a6

Please sign in to comment.