From ee115a473daf0043fa6762ceed5df54c9a419906 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 4 Apr 2023 14:57:07 -0400 Subject: [PATCH] Exclude not include noId npc's. --- src/engine/objects/Mob.java | 2 +- src/engine/objects/NPC.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 5666f6b0..73ae18de 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -808,7 +808,7 @@ public class Mob extends AbstractIntelligenceAgent { // otherwise use the mob cache location. if (this.building != null && building.getBlueprintUUID() != 0 - && this.loadID == 0) { + && this.loadID != 0) { int maxSlots = 10; diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index bfb341e9..a1de9fa6 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -357,7 +357,7 @@ public class NPC extends AbstractCharacter { // createMobWithNoID() is called. if (this.building != null && - this.loadID == 0) { + this.loadID != 0) { // Artillery Tower Captains use a hardcoded slot not first available