Bukkit really needs methods to get by key/get key

This commit is contained in:
Matthew Miller 2018-09-26 15:03:01 +10:00
parent 18abaa21a2
commit 42e0cceeab

View File

@ -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) {