mirror of https://github.com/PikaMug/Quests.git
Tame Mobs stage must use valid type, fixes #482. Bump version number
This commit is contained in:
parent
c06879b2ec
commit
0eea1ca978
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
|||
|
||||
<groupId>me.blackvein.quests</groupId>
|
||||
<artifactId>quests</artifactId>
|
||||
<version>3.4.3</version>
|
||||
<version>3.4.4</version>
|
||||
<name>quests</name>
|
||||
<url>https://github.com/FlyingPikachu/Quests/</url>
|
||||
<packaging>jar</packaging>
|
||||
|
|
|
@ -3007,8 +3007,14 @@ public class CreateStagePrompt extends FixedSetPrompt {
|
|||
LinkedList<String> mobTypes = new LinkedList<String>();
|
||||
for (String s : input.split(" ")) {
|
||||
if (Quests.getMobType(s) != null) {
|
||||
mobTypes.add(Quester.prettyMobString(Quests.getMobType(s)));
|
||||
context.setSessionData(pref + CK.S_TAME_TYPES, mobTypes);
|
||||
final EntityType type = Quests.getMobType(s);
|
||||
if (type.isAlive() || Tameable.class.isAssignableFrom(type.getEntityClass())) {
|
||||
mobTypes.add(Quester.prettyMobString(type));
|
||||
context.setSessionData(pref + CK.S_TAME_TYPES, mobTypes);
|
||||
} else {
|
||||
player.sendMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED + Lang.get("stageEditorInvalidMob"));
|
||||
return new TameTypesPrompt();
|
||||
}
|
||||
} else {
|
||||
player.sendMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED + Lang.get("stageEditorInvalidMob"));
|
||||
return new TameTypesPrompt();
|
||||
|
|
Loading…
Reference in New Issue