mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-04-03 18:47:07 +02:00
Make monster types case-insensitive.
This commit is contained in:
parent
a9eab13842
commit
d32cd22a98
@ -138,7 +138,7 @@ public class MACreature
|
||||
}
|
||||
|
||||
public static MACreature fromString(String string) {
|
||||
return map.get(string.replaceAll("[-_\\.]", ""));
|
||||
return map.get(string.toLowerCase().replaceAll("[-_\\.]", ""));
|
||||
}
|
||||
|
||||
public LivingEntity spawn(Arena arena, World world, Location loc) {
|
||||
|
Loading…
Reference in New Issue
Block a user