From 7bf4f0627e19bec61d727484c261e452679e4ced Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 16 Mar 2025 20:02:25 -0500 Subject: [PATCH] player update bug --- src/engine/objects/PlayerCharacter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 2389ee68..761439ca 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -5197,6 +5197,12 @@ public class PlayerCharacter extends AbstractCharacter { grantXP(Experience.getBaseExperience(this.level + 1) - this.exp); } } + if(this.isBoxed && !this.containsEffect(-654906771)){ + PowersManager.applyPower(this,this,this.loc,-935138707,40,false); + }else if(!this.isBoxed && this.containsEffect(-654906771)){ + EffectsBase eb = PowersManager.getEffectByToken(-654906771); + this.effects.remove(String.valueOf(eb.getUUID())); + } } if (this.isFlying()) { if (this.effects.containsKey("MoveBuff")) {