Browse Source

Use character load range for dirty flag.

master
MagicBot 1 year ago
parent
commit
abf450d6ea
  1. 2
      src/engine/InterestManagement/InterestManager.java
  2. 1
      src/engine/net/client/handlers/PlaceAssetMsgHandler.java

2
src/engine/InterestManagement/InterestManager.java

@ -547,7 +547,7 @@ public enum InterestManager implements Runnable { @@ -547,7 +547,7 @@ public enum InterestManager implements Runnable {
public static void setObjectDirty(AbstractWorldObject abstractWorldObject) {
HashSet<AbstractWorldObject> playerList = WorldGrid.getObjectsInRangePartial(abstractWorldObject.getLoc(), MBServerStatics.LOOT_RANGE, MBServerStatics.MASK_PLAYER);
HashSet<AbstractWorldObject> playerList = WorldGrid.getObjectsInRangePartial(abstractWorldObject.getLoc(), MBServerStatics.CHARACTER_LOAD_RANGE, MBServerStatics.MASK_PLAYER);
if (playerList.isEmpty())
return;

1
src/engine/net/client/handlers/PlaceAssetMsgHandler.java

@ -1199,7 +1199,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { @@ -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;

Loading…
Cancel
Save