Fixed a retarded set value

This commit is contained in:
libraryaddict 2014-03-22 03:53:20 +13:00
parent c1b0d1d0c4
commit d141740aa0

View File

@ -37,7 +37,7 @@ public abstract class Disguise {
private boolean hideArmorFromSelf = DisguiseConfig.isHidingArmorFromSelf();
private boolean hideHeldItemFromSelf = DisguiseConfig.isHidingHeldItemFromSelf();
private boolean modifyBoundingBox = DisguiseConfig.isModifyBoundingBox();
private boolean removeWhenInvalid;
private boolean removeWhenInvalid = true;
private boolean replaceSounds = DisguiseConfig.isSoundEnabled();
private BukkitRunnable velocityRunnable;
private boolean velocitySent = DisguiseConfig.isVelocitySent();
@ -338,8 +338,11 @@ public abstract class Disguise {
return false;
}
/**
* Is the disguise removed when the disguised entity is invalid?
*/
public boolean isRemoveWhenInvalid() {
return !removeWhenInvalid;
return removeWhenInvalid;
}
public boolean isSelfDisguiseSoundsReplaced() {