From 27550293d65e473b9accd9112f0a1e47d5d5b14b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 17 May 2024 23:57:03 -0500 Subject: [PATCH] box check only every 10 seconds --- 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 d3d0b54b..927ad0c5 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4897,7 +4897,7 @@ public class PlayerCharacter extends AbstractCharacter { } public static void checkIfBoxed(PlayerCharacter player){ - if(System.currentTimeMillis() > player.nextBoxCheck) + if(System.currentTimeMillis() < player.nextBoxCheck) return; player.nextBoxCheck = System.currentTimeMillis() + 10000;