Browse Source

hot fix for regen

lakebane
FatBoy-DOTC 2 weeks ago
parent
commit
123c488fc6
  1. 12
      src/engine/objects/PlayerCharacter.java

12
src/engine/objects/PlayerCharacter.java

@ -5694,8 +5694,8 @@ public class PlayerCharacter extends AbstractCharacter { @@ -5694,8 +5694,8 @@ public class PlayerCharacter extends AbstractCharacter {
}
public void doRegen() {
if (!this.timestamps.containsKey("SyncClient"))
this.timestamps.put("SyncClient", System.currentTimeMillis());
//if (!this.timestamps.containsKey("SyncClient"))
// this.timestamps.put("SyncClient", System.currentTimeMillis());
if (!this.isAlive() || !this.enteredWorld || !this.isActive) {
this.resetRegenUpdateTime();
@ -5877,10 +5877,10 @@ public class PlayerCharacter extends AbstractCharacter { @@ -5877,10 +5877,10 @@ public class PlayerCharacter extends AbstractCharacter {
this.lastUpdateTime = System.currentTimeMillis();
this.lastStamUpdateTime = System.currentTimeMillis();
if (this.timestamps.get("SyncClient") + 5000L < System.currentTimeMillis()) {
this.syncClient();
this.timestamps.put("SyncClient", System.currentTimeMillis());
}
//if (this.timestamps.get("SyncClient") + 5000L < System.currentTimeMillis()) {
// this.syncClient();
// this.timestamps.put("SyncClient", System.currentTimeMillis());
//}
}
public boolean regenerateHealth(){

Loading…
Cancel
Save