mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
Remove bad parsing of mob names
This commit is contained in:
parent
aea3f7ca28
commit
a01de064e5
@ -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 = "";
|
||||
|
Loading…
Reference in New Issue
Block a user