mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-02-05 13:00:30 +08:00
Bukkit really needs methods to get by key/get key
This commit is contained in:
parent
18abaa21a2
commit
42e0cceeab
@ -283,7 +283,7 @@ public static GameMode adapt(org.bukkit.GameMode gameMode) {
|
||||
* @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) {
|
||||
|
Loading…
Reference in New Issue
Block a user