mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
Better parsing of mob names, fixes #22
This commit is contained in:
parent
10ec9b17d9
commit
a7f5312579
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user