Remove bad parsing of mob names

This commit is contained in:
HappyPikachu 2015-02-09 18:01:57 -05:00
parent aea3f7ca28
commit a01de064e5

View File

@ -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 = "";