From 6937cfc9a9c9e4e9b84fc9d5b37d9ea55cb4631e Mon Sep 17 00:00:00 2001 From: wizjany Date: Sat, 9 Mar 2019 10:46:40 -0500 Subject: [PATCH] Need internal ID for EntityType here too. --- .../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 e6b290125..c76c854d3 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 @@ -334,7 +334,7 @@ public class BukkitAdapter { * @return WorldEdit EntityType */ public static EntityType adapt(org.bukkit.entity.EntityType entityType) { - return EntityTypes.get(entityType.name().toLowerCase()); + return EntityTypes.get(entityType.getName().toLowerCase()); } public static org.bukkit.entity.EntityType adapt(EntityType entityType) {