forked from MagicBane/Server
rollback visual BOXED indicator
This commit is contained in:
@@ -537,8 +537,8 @@ public enum InterestManager implements Runnable {
|
|||||||
|
|
||||||
// Update loaded upbjects lists
|
// Update loaded upbjects lists
|
||||||
|
|
||||||
//player.isBoxed = PlayerCharacter.checkIfBoxed(player);
|
player.isBoxed = PlayerCharacter.checkIfBoxed(player);
|
||||||
player.updateBoxStatus(PlayerCharacter.checkIfBoxed(player));
|
//player.updateBoxStatus(PlayerCharacter.checkIfBoxed(player));
|
||||||
player.setDirtyLoad(true);
|
player.setDirtyLoad(true);
|
||||||
updateStaticList(player, origin);
|
updateStaticList(player, origin);
|
||||||
updateMobileList(player, origin);
|
updateMobileList(player, origin);
|
||||||
|
|||||||
@@ -5202,13 +5202,14 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
this.safeZone = this.isInSafeZone();
|
this.safeZone = this.isInSafeZone();
|
||||||
|
|
||||||
if(this.isActive && this.enteredWorld) {
|
if(this.isActive && this.enteredWorld) {
|
||||||
// if (!this.timestamps.containsKey("nextBoxCheck"))
|
if (!this.timestamps.containsKey("nextBoxCheck"))
|
||||||
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
||||||
|
|
||||||
//if(this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
|
if(!this.isBoxed && this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
|
||||||
updateBoxStatus(checkIfBoxed(this));
|
//updateBoxStatus(checkIfBoxed(this));
|
||||||
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
this.isBoxed = checkIfBoxed(this);
|
||||||
//}
|
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.level < 10 && this.enteredWorld) {
|
if (this.level < 10 && this.enteredWorld) {
|
||||||
while (this.level < 10) {
|
while (this.level < 10) {
|
||||||
@@ -5277,9 +5278,11 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
if(pc.equals(player))
|
if(pc.equals(player))
|
||||||
continue;
|
continue;
|
||||||
//pc.isBoxed = true;
|
//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){
|
public static boolean checkIfBoxed(PlayerCharacter player){
|
||||||
if(ConfigManager.MB_WORLD_BOXLIMIT.getValue().equals("false")) {
|
if(ConfigManager.MB_WORLD_BOXLIMIT.getValue().equals("false")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user