rollback visual BOXED indicator

This commit is contained in:
2025-03-16 15:47:25 -05:00
parent 0ec2add724
commit de1e8eed98
2 changed files with 13 additions and 10 deletions
+11 -8
View File
@@ -5202,13 +5202,14 @@ public class PlayerCharacter extends AbstractCharacter {
this.safeZone = this.isInSafeZone();
if(this.isActive && this.enteredWorld) {
// if (!this.timestamps.containsKey("nextBoxCheck"))
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
if (!this.timestamps.containsKey("nextBoxCheck"))
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
//if(this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
updateBoxStatus(checkIfBoxed(this));
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
//}
if(!this.isBoxed && this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
//updateBoxStatus(checkIfBoxed(this));
this.isBoxed = checkIfBoxed(this);
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
}
if (this.level < 10 && this.enteredWorld) {
while (this.level < 10) {
@@ -5277,9 +5278,11 @@ public class PlayerCharacter extends AbstractCharacter {
if(pc.equals(player))
continue;
//pc.isBoxed = true;
pc.updateBoxStatus(true);
//pc.updateBoxStatus(true);
pc.isBoxed = true;
}
player.updateBoxStatus(false);
//player.updateBoxStatus(false);
player.isBoxed = false;
}
public static boolean checkIfBoxed(PlayerCharacter player){
if(ConfigManager.MB_WORLD_BOXLIMIT.getValue().equals("false")) {