forked from MagicBane/Server
disable refresh loaded objects
This commit is contained in:
@@ -5232,16 +5232,16 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if(!this.timestamps.containsKey("nextReload")){
|
//if(!this.timestamps.containsKey("nextReload")){
|
||||||
this.timestamps.put("nextReload",System.currentTimeMillis() + 5000);
|
// this.timestamps.put("nextReload",System.currentTimeMillis() + 5000);
|
||||||
}else{
|
// }else{
|
||||||
if(this.timestamps.get("nextReload") < System.currentTimeMillis()) {
|
// if(this.timestamps.get("nextReload") < System.currentTimeMillis()) {
|
||||||
this.setDirtyLoad(true);
|
// this.setDirtyLoad(true);
|
||||||
InterestManager.setObjectDirty(this);
|
// InterestManager.setObjectDirty(this);
|
||||||
InterestManager.INTERESTMANAGER.RefreshLoadedObjects(this);
|
// InterestManager.INTERESTMANAGER.RefreshLoadedObjects(this);
|
||||||
this.timestamps.put("nextReload",System.currentTimeMillis() + 5000);
|
// this.timestamps.put("nextReload",System.currentTimeMillis() + 5000);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error(e);
|
Logger.error(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user