From a7f53125799bf5cd9e48223fc87285f8d8f2a3d0 Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Fri, 20 Feb 2015 00:02:27 -0500 Subject: [PATCH] Better parsing of mob names, fixes #22 --- src/main/java/me/blackvein/quests/util/MiscUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/blackvein/quests/util/MiscUtil.java b/src/main/java/me/blackvein/quests/util/MiscUtil.java index e7333ac2f..90622fd8a 100644 --- a/src/main/java/me/blackvein/quests/util/MiscUtil.java +++ b/src/main/java/me/blackvein/quests/util/MiscUtil.java @@ -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; }