From a01de064e569b6a148facd058c127ff99b6ad22a Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Mon, 9 Feb 2015 18:01:57 -0500 Subject: [PATCH] Remove bad parsing of mob names --- .../me/blackvein/quests/util/MiscUtil.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/main/java/me/blackvein/quests/util/MiscUtil.java b/src/main/java/me/blackvein/quests/util/MiscUtil.java index b5b56340d..e7333ac2f 100644 --- a/src/main/java/me/blackvein/quests/util/MiscUtil.java +++ b/src/main/java/me/blackvein/quests/util/MiscUtil.java @@ -75,7 +75,6 @@ public class MiscUtil { public static EntityType getProperMobType(String properName) { - properName = unfixUnderscores(properName); properName = properName.toUpperCase(); for (EntityType et : EntityType.values()) { @@ -102,25 +101,6 @@ public class MiscUtil { return s; } - private static String unfixUnderscores(String s) { - - int max = s.length(); - - for (int i = 1; i < max; i++) { - - if (Character.isUpperCase(s.charAt(i))) { - - s = s.substring(0, i) + "_" + s.substring(i); - i++; - max++; - - } - - } - - return s; - } - public static String concatArgArray(String[] args, int startingIndex, int endingIndex, char delimiter) { String s = "";