mirror of
https://github.com/PikaMug/Quests.git
synced 2025-03-11 14:19:12 +01:00
Account for spaces in mob names when editing Kill Mob objectives a
second time, fixes #24. Bump version number
This commit is contained in:
parent
364d0c9a84
commit
5171eed572
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
|
||||
<groupId>me.blackvein.quests</groupId>
|
||||
<artifactId>quests</artifactId>
|
||||
<version>2.8.6-03</version>
|
||||
<version>2.8.7</version>
|
||||
<name>quests</name>
|
||||
<url>https://github.com/FlyingPikachu/Quests/</url>
|
||||
<packaging>jar</packaging>
|
||||
|
@ -62,7 +62,7 @@ public class MiscUtil {
|
||||
}
|
||||
|
||||
public static EntityType getProperMobType(String properName) {
|
||||
properName = properName.replaceAll("_", "").toUpperCase();
|
||||
properName = properName.replaceAll("_", "").replaceAll(" ", "").toUpperCase();
|
||||
for (EntityType et : EntityType.values()) {
|
||||
if (et.isAlive() && et.name().replaceAll("_", "").equalsIgnoreCase(properName)) {
|
||||
return et;
|
||||
|
Loading…
Reference in New Issue
Block a user