From 5f2fb5fc5476a3ff3a5972df93f432ca90e97387 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 9 Oct 2020 11:56:00 +1300 Subject: [PATCH] Fix a check not done for setEnraged --- pom.xml | 2 +- .../disguisetypes/watchers/InsentientWatcher.java | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 94b8765d..cd22c2f5 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ LibsDisguises LibsDisguises - 10.0.17 + 10.0.17-SNAPSHOT exec:java clean install diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/InsentientWatcher.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/InsentientWatcher.java index 502db190..2c4cd935 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/InsentientWatcher.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/InsentientWatcher.java @@ -57,9 +57,11 @@ public class InsentientWatcher extends LivingWatcher { setInsentientFlag(4, enraged); - // TODO Check if a less hacky fix is possible - if (!enraged) { - DisguiseUtilities.refreshTrackers(getDisguise()); + if (!getDisguise().isDisguiseInUse() || enraged) { + return; } + + // TODO Check if a less hacky fix is possible + DisguiseUtilities.refreshTrackers(getDisguise()); } }