forked from MagicBane/Server
interest management
This commit is contained in:
@@ -5270,14 +5270,11 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
public static void updateLoadedPlayers(PlayerCharacter pc){
|
||||
HashSet<AbstractWorldObject> inRange = WorldGrid.getObjectsInRangePartial(pc.loc,MBServerStatics.CHARACTER_LOAD_RANGE,MBServerStatics.MASK_PLAYER);
|
||||
for(AbstractWorldObject awo : inRange){
|
||||
if(pc.loadedObjects.contains(awo))
|
||||
continue;
|
||||
PlayerCharacter toLoad = (PlayerCharacter)awo;
|
||||
if(toLoad.hidden > pc.seeInvis)
|
||||
continue;
|
||||
LoadCharacterMsg lcm = new LoadCharacterMsg(toLoad, PlayerCharacter.hideNonAscii());
|
||||
pc.getClientConnection().sendMsg(lcm);
|
||||
pc.loadedObjects.add(toLoad);
|
||||
}
|
||||
}
|
||||
public static boolean checkIfBoxed(PlayerCharacter player){
|
||||
|
||||
Reference in New Issue
Block a user