From ef6bb65e73ede4a3faca98e0561a338ed251d142 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 9 Apr 2023 14:06:03 -0400 Subject: [PATCH] NONE is not needed for a BitSet. 0 is just empty. --- src/engine/objects/Mob.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 804de497..5eca55b0 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -108,8 +108,8 @@ public class Mob extends AbstractIntelligenceAgent { public int runeSet = 0; public int bootySet = 0; - public EnumBitSet notEnemy = EnumBitSet.just(MonsterType.NONE); - public EnumBitSet enemy = EnumBitSet.just(MonsterType.NONE);; + public EnumBitSet notEnemy; + public EnumBitSet enemy; /** * No Id Constructor @@ -1971,15 +1971,8 @@ public class Mob extends AbstractIntelligenceAgent { // Combine mobbase and mob aggro arrays into one bitvector this.notEnemy.addAll(this.getMobBase().notEnemy); - - if (this.notEnemy.size() > 1) - this.notEnemy.remove(MonsterType.NONE); - this.enemy.addAll(this.getMobBase().enemy); - if (this.enemy.size() > 1) - this.enemy.remove(MonsterType.NONE); - try { NPCManager.applyRuneSetEffects(this); recalculateStats();