From 29ec18fe037083292f9fea5631aeb261faad9d8f Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 23 Jul 2013 06:44:27 +1200 Subject: [PATCH] Fixed the wrong boolean being returned --- .../libraryaddict/disguise/DisguiseTypes/MobDisguise.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/me/libraryaddict/disguise/DisguiseTypes/MobDisguise.java b/src/me/libraryaddict/disguise/DisguiseTypes/MobDisguise.java index 521ac35d..e6e16d66 100644 --- a/src/me/libraryaddict/disguise/DisguiseTypes/MobDisguise.java +++ b/src/me/libraryaddict/disguise/DisguiseTypes/MobDisguise.java @@ -23,10 +23,7 @@ public class MobDisguise extends Disguise { public boolean doesDisguiseAge() { if (getWatcher() != null) { - if (getWatcher() instanceof AgeableWatcher) - return ((AgeableWatcher) getWatcher()).isAdult(); - else if (getWatcher() instanceof ZombieWatcher) - return ((ZombieWatcher) getWatcher()).isAdult(); + return getWatcher() instanceof AgeableWatcher || getWatcher() instanceof ZombieWatcher; } return false; @@ -39,7 +36,7 @@ public class MobDisguise extends Disguise { public boolean isAdult() { if (getWatcher() != null) { if (getWatcher() instanceof AgeableWatcher) - return ((AgeableWatcher) getWatcher()).isAdult(); + return true; else if (getWatcher() instanceof ZombieWatcher) return ((ZombieWatcher) getWatcher()).isAdult(); return false;