Fixed issue where some scripts weren't cleared when the player moves

This commit is contained in:
zsrv 2024-03-03 05:18:22 +00:00 committed by Ryan
parent 4f5d753104
commit 9068874556

View file

@ -200,6 +200,11 @@ public abstract class MovementPulse extends Pulse {
mover.currentMovement = this; mover.currentMovement = this;
} }
private void clearInferiorScripts() {
mover.scripts.removeWeakScripts();
mover.scripts.removeNormalScripts();
}
@Override @Override
public boolean update() { public boolean update() {
if (!mover.getViewport().getRegion().isActive()) if (!mover.getViewport().getRegion().isActive())
@ -212,6 +217,8 @@ public abstract class MovementPulse extends Pulse {
return true; return true;
} }
clearInferiorScripts();
mover.face(null); mover.face(null);
updatePath(); updatePath();