Skip to content

Commit

Permalink
Bukkit really needs methods to get by key/get key
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Sep 26, 2018
1 parent 18abaa2 commit 42e0cce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 42e0cce

Please sign in to comment.