Browse Source

attempt to stop second box crash

lakebane-dungeon
FatBoy-DOTC 4 days ago
parent
commit
846d720c2f
  1. 4
      src/engine/objects/PlayerCharacter.java

4
src/engine/objects/PlayerCharacter.java

@ -5180,6 +5180,8 @@ public class PlayerCharacter extends AbstractCharacter {
this.updateBlessingMessage(); this.updateBlessingMessage();
this.safeZone = this.isInSafeZone(); this.safeZone = this.isInSafeZone();
if(this.isActive && this.enteredWorld) {
if (!this.timestamps.containsKey("nextBoxCheck")) if (!this.timestamps.containsKey("nextBoxCheck"))
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000); this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000);
@ -5197,7 +5199,7 @@ public class PlayerCharacter extends AbstractCharacter {
if (this.isBoxed && !this.containsEffect(1672601862)) { if (this.isBoxed && !this.containsEffect(1672601862)) {
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false); PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
} }
}
if (this.isFlying()) { if (this.isFlying()) {
if (this.effects.containsKey("MoveBuff")) { if (this.effects.containsKey("MoveBuff")) {
GroundPlayer(this); GroundPlayer(this);

Loading…
Cancel
Save