From 321585dfd6039a4d6904889fe760589c9f9e11c4 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 24 Mar 2025 18:34:33 -0500 Subject: [PATCH] 3 second box check intervals --- src/engine/objects/PlayerCharacter.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 31d301fc..1b21c751 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -5183,13 +5183,14 @@ public class PlayerCharacter extends AbstractCharacter { if(this.isActive && this.enteredWorld) { if (!this.timestamps.containsKey("nextBoxCheck")) - this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000); + this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 3000); - if (!this.isBoxed && this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) { - this.isBoxed = checkIfBoxed(this); - this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000); + if(this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) { + if (!this.isBoxed) { + this.isBoxed = checkIfBoxed(this); + } + this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 3000); } - if (this.level < 10 && this.enteredWorld) { while (this.level < 10) { grantXP(Experience.getBaseExperience(this.level + 1) - this.exp);