forked from MagicBane/Server
stop invisible player plague
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user