Fixed the wrong boolean being returned
This commit is contained in:
parent
f5e5b0c261
commit
29ec18fe03
@ -23,10 +23,7 @@ public class MobDisguise extends Disguise {
|
|||||||
|
|
||||||
public boolean doesDisguiseAge() {
|
public boolean doesDisguiseAge() {
|
||||||
if (getWatcher() != null) {
|
if (getWatcher() != null) {
|
||||||
if (getWatcher() instanceof AgeableWatcher)
|
return getWatcher() instanceof AgeableWatcher || getWatcher() instanceof ZombieWatcher;
|
||||||
return ((AgeableWatcher) getWatcher()).isAdult();
|
|
||||||
else if (getWatcher() instanceof ZombieWatcher)
|
|
||||||
return ((ZombieWatcher) getWatcher()).isAdult();
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -39,7 +36,7 @@ public class MobDisguise extends Disguise {
|
|||||||
public boolean isAdult() {
|
public boolean isAdult() {
|
||||||
if (getWatcher() != null) {
|
if (getWatcher() != null) {
|
||||||
if (getWatcher() instanceof AgeableWatcher)
|
if (getWatcher() instanceof AgeableWatcher)
|
||||||
return ((AgeableWatcher) getWatcher()).isAdult();
|
return true;
|
||||||
else if (getWatcher() instanceof ZombieWatcher)
|
else if (getWatcher() instanceof ZombieWatcher)
|
||||||
return ((ZombieWatcher) getWatcher()).isAdult();
|
return ((ZombieWatcher) getWatcher()).isAdult();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user