From 58c16ba2ba4f0310462bffe9707769ae39d91aff Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Wed, 11 Mar 2015 17:46:24 -0400 Subject: [PATCH] Add Horse to tameable mobs, fixes #49 --- src/main/java/me/blackvein/quests/Quests.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index 15efcb3c2..6cf07385a 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -3860,14 +3860,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener, List mobAmounts = config.getIntegerList("quests." + questName + ".stages.ordered." + s2 + ".mob-tame-amounts"); for (String mob : mobs) { + + if (mob.equalsIgnoreCase("Wolf") || mob.equalsIgnoreCase("Ocelot") || mob.equalsIgnoreCase("Horse")) { - if (mob.equalsIgnoreCase("Wolf")) { - - oStage.mobsToTame.put(EntityType.WOLF, mobAmounts.get(mobs.indexOf(mob))); - - } else if (mob.equalsIgnoreCase("Ocelot")) { - - oStage.mobsToTame.put(EntityType.OCELOT, mobAmounts.get(mobs.indexOf(mob))); + oStage.mobsToTame.put(EntityType.valueOf(mob.toUpperCase()), mobAmounts.get(mobs.indexOf(mob))); } else { stageFailed("" + mob + " inside mobs-to-tame: inside Stage " + s2 + " of Quest " + quest.name + " is not a valid tameable mob!");