From 97d73889cc3d93c70ced55099b30f8c4e89744b6 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 16 Apr 2020 17:22:22 +0100 Subject: [PATCH] Remove _ from tree type as easy fix for actually typing the correct tree type --- .../src/main/java/com/sk89q/worldedit/util/TreeGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/util/TreeGenerator.java b/worldedit-core/src/main/java/com/sk89q/worldedit/util/TreeGenerator.java index ad9b798b1..a98307acb 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/util/TreeGenerator.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/util/TreeGenerator.java @@ -162,7 +162,7 @@ public class TreeGenerator { */ @Nullable public static TreeType lookup(String name) { - return lookup.get(name.toLowerCase(Locale.ROOT)); + return lookup.get(name.replace("_", "").toLowerCase(Locale.ROOT)); } }