interest management

This commit is contained in:
2025-03-17 19:21:25 -05:00
parent 50bf375006
commit 2681671543
7 changed files with 7 additions and 18 deletions
@@ -46,7 +46,6 @@ public enum InterestManager implements Runnable {
LoadCharacterMsg lcm;
NPC npc;
Corpse corpse;
PlayerCharacter pc;
HashSet<AbstractWorldObject> toUpdate;
switch (awo.getObjectType()) {
@@ -65,11 +64,6 @@ public enum InterestManager implements Runnable {
lcm = new LoadCharacterMsg(npc, false);
msg = lcm;
break;
case PlayerCharacter:
pc = (PlayerCharacter) awo;
lcm = new LoadCharacterMsg(pc, false);
msg = lcm;
break;
default:
return;
}
@@ -112,7 +106,7 @@ public enum InterestManager implements Runnable {
origin.sendMsg(moveMsg);
}
public static void reloadCharacter(AbstractCharacter absChar, boolean fromBox) {
public static void reloadCharacter(AbstractCharacter absChar) {
UnloadObjectsMsg uom = new UnloadObjectsMsg();
uom.addObject(absChar);
@@ -138,9 +132,8 @@ public enum InterestManager implements Runnable {
if (cc == null)
continue;
if (pcc.getObjectUUID() == absChar.getObjectUUID()) {
if (pcc.getObjectUUID() == absChar.getObjectUUID())
continue;
}
else {
if (pc != null)
@@ -538,7 +531,6 @@ public enum InterestManager implements Runnable {
// Update loaded upbjects lists
player.isBoxed = PlayerCharacter.checkIfBoxed(player);
//player.updateBoxStatus(PlayerCharacter.checkIfBoxed(player));
player.setDirtyLoad(true);
updateStaticList(player, origin);
updateMobileList(player, origin);