Tiny code cleanup

This commit is contained in:
Andrew 2013-11-12 17:46:24 +13:00
parent 78bc04a4b4
commit f02d212c9b
2 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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);
}