Browse Source

rollback visual BOXED indicator

lakebane
FatBoy-DOTC 2 weeks ago
parent
commit
de1e8eed98
  1. 4
      src/engine/InterestManagement/InterestManager.java
  2. 19
      src/engine/objects/PlayerCharacter.java

4
src/engine/InterestManagement/InterestManager.java

@ -537,8 +537,8 @@ public enum InterestManager implements Runnable { @@ -537,8 +537,8 @@ public enum InterestManager implements Runnable {
// Update loaded upbjects lists
//player.isBoxed = PlayerCharacter.checkIfBoxed(player);
player.updateBoxStatus(PlayerCharacter.checkIfBoxed(player));
player.isBoxed = PlayerCharacter.checkIfBoxed(player);
//player.updateBoxStatus(PlayerCharacter.checkIfBoxed(player));
player.setDirtyLoad(true);
updateStaticList(player, origin);
updateMobileList(player, origin);

19
src/engine/objects/PlayerCharacter.java

@ -5202,13 +5202,14 @@ public class PlayerCharacter extends AbstractCharacter { @@ -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 { @@ -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")) {

Loading…
Cancel
Save