optimized regen client sync
This commit is contained in:
@@ -5469,7 +5469,7 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void doRegen(){
|
public void doRegen(){
|
||||||
if(!this.timestamps.contains("SyncClient"))
|
if(!this.timestamps.containsKey("SyncClient"))
|
||||||
this.timestamps.put("SyncClient",System.currentTimeMillis());
|
this.timestamps.put("SyncClient",System.currentTimeMillis());
|
||||||
if (this.updateLock.writeLock().tryLock()) {
|
if (this.updateLock.writeLock().tryLock()) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user