Fixed issue where some scripts weren't cleared when the player moves
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user