|
|
|
@ -568,11 +568,20 @@ public enum InterestManager implements Runnable {
@@ -568,11 +568,20 @@ public enum InterestManager implements Runnable {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void RefreshLoadedObjects(PlayerCharacter pc){ |
|
|
|
|
public void RefreshLoadedObjects(PlayerCharacter player){ |
|
|
|
|
try { |
|
|
|
|
pc.getLoadedObjects().clear(); |
|
|
|
|
updateStaticList(pc, pc.getClientConnection()); |
|
|
|
|
updateMobileList(pc, pc.getClientConnection()); |
|
|
|
|
if (player == null) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
ClientConnection origin = player.getClientConnection(); |
|
|
|
|
|
|
|
|
|
if (origin == null) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
// Update loaded upbjects lists
|
|
|
|
|
player.setDirtyLoad(true); |
|
|
|
|
updateStaticList(player, origin); |
|
|
|
|
updateMobileList(player, origin); |
|
|
|
|
}catch(Exception e){ |
|
|
|
|
Logger.error(e.getMessage()); |
|
|
|
|
} |
|
|
|
|