From bc84c7537ba585996f71f5e4dba09cfc96f2336f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 18 Jan 2025 03:24:36 -0600 Subject: [PATCH] optimized regen client sync --- src/engine/objects/PlayerCharacter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 088603fa..5e2cb593 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -5469,7 +5469,7 @@ public class PlayerCharacter extends AbstractCharacter { } public void doRegen(){ - if(!this.timestamps.contains("SyncClient")) + if(!this.timestamps.containsKey("SyncClient")) this.timestamps.put("SyncClient",System.currentTimeMillis()); if (this.updateLock.writeLock().tryLock()) { try {