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