forked from MagicBane/Server
stop invisible player plague
This commit is contained in:
@@ -5148,8 +5148,17 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
this.updateMovementState();
|
this.updateMovementState();
|
||||||
|
|
||||||
if(!newSystem) {
|
if(!newSystem) {
|
||||||
// this.updateLocation();
|
if(!this.timestamps.containsKey("SetDirty")){
|
||||||
// this.updateMovementState();
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user