stop invisible player plague

This commit is contained in:
2025-03-15 23:27:07 -05:00
parent 0331fc88af
commit 76c637e733
+11 -2
View File
@@ -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;
}