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;
}
private void clearInferiorScripts() {
mover.scripts.removeWeakScripts();
mover.scripts.removeNormalScripts();
}
@Override
public boolean update() {
if (!mover.getViewport().getRegion().isActive())
@ -212,6 +217,8 @@ public abstract class MovementPulse extends Pulse {
return true;
}
clearInferiorScripts();
mover.face(null);
updatePath();