Fix a check not done for setEnraged

This commit is contained in:
libraryaddict 2020-10-09 11:56:00 +13:00
parent f229b25c71
commit 5f2fb5fc54
2 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@
<!-- A good example on why temporary names for project identification shouldn't be used --> <!-- A good example on why temporary names for project identification shouldn't be used -->
<groupId>LibsDisguises</groupId> <groupId>LibsDisguises</groupId>
<artifactId>LibsDisguises</artifactId> <artifactId>LibsDisguises</artifactId>
<version>10.0.17</version> <version>10.0.17-SNAPSHOT</version>
<build> <build>
<defaultGoal>exec:java clean install</defaultGoal> <defaultGoal>exec:java clean install</defaultGoal>

View File

@ -57,9 +57,11 @@ public class InsentientWatcher extends LivingWatcher {
setInsentientFlag(4, enraged); setInsentientFlag(4, enraged);
// TODO Check if a less hacky fix is possible if (!getDisguise().isDisguiseInUse() || enraged) {
if (!enraged) { return;
DisguiseUtilities.refreshTrackers(getDisguise());
} }
// TODO Check if a less hacky fix is possible
DisguiseUtilities.refreshTrackers(getDisguise());
} }
} }