Need internal ID for EntityType here too.

This commit is contained in:
wizjany 2019-03-09 10:46:40 -05:00
parent a22b5535fe
commit 6937cfc9a9

View File

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