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;
|
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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user