From 14c4443f20b5862ae4ccc11adf8f55cb6ecebfcc Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 4 Apr 2023 13:56:34 -0400 Subject: [PATCH] loadID is needed; different mob. --- 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 da895a12..5666f6b0 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.building.getHirelings().contains(this) == false) { + && this.loadID == 0) { int maxSlots = 10; diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index b69f2bea..dd8b7f18 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.building.getHirelings().contains(this) == false) { + this.loadID == 0) { int maxSlots = 10;