Browse Source

stop invisible player plague

lakebane
FatBoy-DOTC 2 weeks ago
parent
commit
76c637e733
  1. 13
      src/engine/objects/PlayerCharacter.java

13
src/engine/objects/PlayerCharacter.java

@ -5148,8 +5148,17 @@ public class PlayerCharacter extends AbstractCharacter { @@ -5148,8 +5148,17 @@ public class PlayerCharacter extends AbstractCharacter {
this.updateMovementState();
if(!newSystem) {
// this.updateLocation();
// this.updateMovementState();
if(!this.timestamps.containsKey("SetDirty")){
this.timestamps.put("SetDirty", System.currentTimeMillis());
}else if (this.timestamps.get("SetDirty") + 5000L < System.currentTimeMillis()) {
LoadCharacterMsg lcm = new LoadCharacterMsg(this, PlayerCharacter.hideNonAscii());
if (lcm != null) {
//Dispatch dispatch = Dispatch.borrow(this, lcm);
//DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.PRIMARY);
DispatchMessage.dispatchMsgToInterestArea(this,lcm,DispatchChannel.PRIMARY,MBServerStatics.CHARACTER_LOAD_RANGE,true,false);
}
this.timestamps.put("SetDirty", System.currentTimeMillis());
}
return;
}

Loading…
Cancel
Save