mirror of
https://github.com/PikaMug/Quests.git
synced 2024-09-30 16:07:27 +02:00
Add Horse to tameable mobs, fixes #49
This commit is contained in:
parent
b3e61a50a2
commit
58c16ba2ba
@ -3861,13 +3861,9 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
|
|||||||
|
|
||||||
for (String mob : mobs) {
|
for (String mob : mobs) {
|
||||||
|
|
||||||
if (mob.equalsIgnoreCase("Wolf")) {
|
if (mob.equalsIgnoreCase("Wolf") || mob.equalsIgnoreCase("Ocelot") || mob.equalsIgnoreCase("Horse")) {
|
||||||
|
|
||||||
oStage.mobsToTame.put(EntityType.WOLF, mobAmounts.get(mobs.indexOf(mob)));
|
oStage.mobsToTame.put(EntityType.valueOf(mob.toUpperCase()), mobAmounts.get(mobs.indexOf(mob)));
|
||||||
|
|
||||||
} else if (mob.equalsIgnoreCase("Ocelot")) {
|
|
||||||
|
|
||||||
oStage.mobsToTame.put(EntityType.OCELOT, mobAmounts.get(mobs.indexOf(mob)));
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
stageFailed("" + mob + " inside mobs-to-tame: inside Stage " + s2 + " of Quest " + quest.name + " is not a valid tameable mob!");
|
stageFailed("" + mob + " inside mobs-to-tame: inside Stage " + s2 + " of Quest " + quest.name + " is not a valid tameable mob!");
|
||||||
|
Loading…
Reference in New Issue
Block a user