From d2decad8d558525f68c301b3fecdfbbd2ce7346f Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 5 Dec 2020 07:41:15 +1300 Subject: [PATCH] Let them unsafely modify bounding boxes --- .../me/libraryaddict/disguise/disguisetypes/Disguise.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index fb63c231..1bb17e7e 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -790,10 +790,10 @@ public abstract class Disguise { } public Disguise setModifyBoundingBox(boolean modifyBox) { - if (((TargetedDisguise) this).getDisguiseTarget() != TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) { - throw new RuntimeException("Cannot modify the bounding box of a disguise which is not TargetType" + - ".SHOW_TO_EVERYONE_BUT_THESE_PLAYERS"); - } +// if (((TargetedDisguise) this).getDisguiseTarget() != TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) { +// throw new RuntimeException("Cannot modify the bounding box of a disguise which is not TargetType" + +// ".SHOW_TO_EVERYONE_BUT_THESE_PLAYERS"); +// } if (isModifyBoundingBox() != modifyBox) { this.modifyBoundingBox = modifyBox;