Browse Source

disable refresh loaded objects

lakebane
FatBoy-DOTC 2 weeks ago
parent
commit
f7f306855a
  1. 20
      src/engine/objects/PlayerCharacter.java

20
src/engine/objects/PlayerCharacter.java

@ -5232,16 +5232,16 @@ public class PlayerCharacter extends AbstractCharacter { @@ -5232,16 +5232,16 @@ public class PlayerCharacter extends AbstractCharacter {
}
}
if(!this.timestamps.containsKey("nextReload")){
this.timestamps.put("nextReload",System.currentTimeMillis() + 5000);
}else{
if(this.timestamps.get("nextReload") < System.currentTimeMillis()) {
this.setDirtyLoad(true);
InterestManager.setObjectDirty(this);
InterestManager.INTERESTMANAGER.RefreshLoadedObjects(this);
this.timestamps.put("nextReload",System.currentTimeMillis() + 5000);
}
}
//if(!this.timestamps.containsKey("nextReload")){
// this.timestamps.put("nextReload",System.currentTimeMillis() + 5000);
// }else{
// if(this.timestamps.get("nextReload") < System.currentTimeMillis()) {
// this.setDirtyLoad(true);
// InterestManager.setObjectDirty(this);
// InterestManager.INTERESTMANAGER.RefreshLoadedObjects(this);
// this.timestamps.put("nextReload",System.currentTimeMillis() + 5000);
// }
// }
} catch (Exception e) {
Logger.error(e);

Loading…
Cancel
Save