From 42e0cceeab4c5c5e348826906ad6fcfc3846a935 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Wed, 26 Sep 2018 15:03:01 +1000 Subject: [PATCH] Bukkit really needs methods to get by key/get key --- .../src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java index 7b0aa4ff6..2f30ed2e9 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java @@ -283,7 +283,7 @@ public class BukkitAdapter { * @return WorldEdit EntityType */ public static EntityType adapt(org.bukkit.entity.EntityType entityType) { - return EntityTypes.get(entityType.getName().toLowerCase()); + return EntityTypes.get(entityType.name().toLowerCase()); } public static org.bukkit.entity.EntityType adapt(EntityType entityType) {