mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed issue where some scripts weren't cleared when the player moves
This commit is contained in:
parent
4f5d753104
commit
9068874556
1 changed files with 7 additions and 0 deletions
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue