From d141740aa03276814c0f8dd36ec1dfa901ad2dc9 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 22 Mar 2014 03:53:20 +1300 Subject: [PATCH] Fixed a retarded set value --- src/me/libraryaddict/disguise/disguisetypes/Disguise.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java index afe053c2..25b3ef13 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -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() {