From 07aeb6e58dffdd4fc96364a860962973fe52fc0e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 20 Aug 2023 20:02:16 -0400 Subject: [PATCH] dirtyFlag integration. --- src/engine/gameManager/BuildingManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 29952642..0ced4674 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -571,8 +571,9 @@ public enum BuildingManager { if (npc == null) return false; - npc.setLoc(npc.getLoc()); - + npc.setObjectTypeMask(MBServerStatics.MASK_NPC); + npc.setLoc(npc.bindLoc); + InterestManager.setObjectDirty(npc); return true; }