From abf450d6ea73eab59e48606a2a4e626d11789ba5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 21 Aug 2023 04:52:02 -0400 Subject: [PATCH] Use character load range for dirty flag. --- src/engine/InterestManagement/InterestManager.java | 2 +- src/engine/net/client/handlers/PlaceAssetMsgHandler.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/InterestManagement/InterestManager.java b/src/engine/InterestManagement/InterestManager.java index 07186d5b..7b429523 100644 --- a/src/engine/InterestManagement/InterestManager.java +++ b/src/engine/InterestManagement/InterestManager.java @@ -547,7 +547,7 @@ public enum InterestManager implements Runnable { public static void setObjectDirty(AbstractWorldObject abstractWorldObject) { - HashSet playerList = WorldGrid.getObjectsInRangePartial(abstractWorldObject.getLoc(), MBServerStatics.LOOT_RANGE, MBServerStatics.MASK_PLAYER); + HashSet playerList = WorldGrid.getObjectsInRangePartial(abstractWorldObject.getLoc(), MBServerStatics.CHARACTER_LOAD_RANGE, MBServerStatics.MASK_PLAYER); if (playerList.isEmpty()) return; diff --git a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java index 173c8b1f..382b6547 100644 --- a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java +++ b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java @@ -1199,7 +1199,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { newMesh.setObjectTypeMask(MBServerStatics.MASK_BUILDING); MaintenanceManager.setMaintDateTime(newMesh, LocalDateTime.now().plusDays(7)); - // WorldGrid.addObject(newMesh, playerCharacter); newMesh.setLoc(newMesh.getLoc()); InterestManager.setObjectDirty(newMesh); return newMesh;