From f02d212c9b50341eb08b42a13bff113e323c5ea1 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 12 Nov 2013 17:46:24 +1300 Subject: [PATCH] Tiny code cleanup --- src/me/libraryaddict/disguise/disguisetypes/Disguise.java | 4 +--- .../disguise/disguisetypes/watchers/HorseWatcher.java | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java index a93ece64..0ad371d7 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -65,9 +65,7 @@ public abstract class Disguise { // Get if they are a adult now.. boolean isBaby = false; if (this instanceof MobDisguise) { - if (!((MobDisguise) this).isAdult()) { - isBaby = true; - } + isBaby = !((MobDisguise) this).isAdult(); } try { // Construct the FlagWatcher from the stored class diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/HorseWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/HorseWatcher.java index d07061b6..edb09f8c 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/watchers/HorseWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/HorseWatcher.java @@ -30,12 +30,12 @@ public class HorseWatcher extends AgeableWatcher { return isTrue(8); } - public boolean isBreedable() { + @Deprecated + public boolean isBredable() { return isTrue(16); } - @Deprecated - public boolean isBredable() { + public boolean isBreedable() { return isTrue(16); }