From 0eae76180b4d3cfbb0b7e67a46e18390a8fdae9d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 20 Aug 2023 17:23:50 -0400 Subject: [PATCH] Update state of npc. --- src/engine/gameManager/BuildingManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 0106d863..6ccb65e6 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -12,7 +12,6 @@ package engine.gameManager; import engine.Enum; import engine.Enum.BuildingGroup; import engine.Enum.GameObjectType; -import engine.InterestManagement.InterestManager; import engine.InterestManagement.WorldGrid; import engine.job.JobContainer; import engine.job.JobScheduler; @@ -21,6 +20,7 @@ import engine.math.Bounds; import engine.math.Vector3fImmutable; import engine.net.client.msg.ErrorPopupMsg; import engine.objects.*; +import engine.server.MBServerStatics; import org.pmw.tinylog.Logger; import java.time.LocalDateTime; @@ -502,8 +502,8 @@ public enum BuildingManager { if (npc == null) return false; + npc.setObjectTypeMask(MBServerStatics.MASK_NPC); npc.setLoc(npc.bindLoc); - InterestManager.forceLoad(npc); return true;