Better parsing of mob names, fixes #22

This commit is contained in:
HappyPikachu 2015-02-20 00:02:27 -05:00
parent 10ec9b17d9
commit a7f5312579

View File

@ -75,10 +75,10 @@ public class MiscUtil {
public static EntityType getProperMobType(String properName) {
properName = properName.toUpperCase();
properName = properName.replaceAll("_", "").toUpperCase();
for (EntityType et : EntityType.values()) {
if (et.isAlive() && et.name().equalsIgnoreCase(properName)) {
if (et.isAlive() && et.name().replaceAll("_", "").equalsIgnoreCase(properName)) {
return et;
}