mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed 1 tick movement delay on some actions
This commit is contained in:
parent
98c0698097
commit
28b168e742
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ public abstract class MovementPulse extends Pulse {
|
||||||
if (interactLocation == null)
|
if (interactLocation == null)
|
||||||
interactLocation = loc;
|
interactLocation = loc;
|
||||||
|
|
||||||
if (destination instanceof Entity || interactLocation == null || (!mover.getWalkingQueue().hasPath() && interactLocation.getDistance(mover.getLocation()) > 0) || (usingTruncatedPath && destination.getLocation().getDistance(mover.getLocation()) < 14)) {
|
if (destination instanceof Entity || interactLocation == null || (mover.getWalkingQueue().getQueue().size() <= 1 && interactLocation.getDistance(mover.getLocation()) > 0) || (usingTruncatedPath && destination.getLocation().getDistance(mover.getLocation()) < 14)) {
|
||||||
if (!checkAllowMovement())
|
if (!checkAllowMovement())
|
||||||
return;
|
return;
|
||||||
if (destination instanceof Entity && previousLoc != null && previousLoc.equals(loc) && mover.getWalkingQueue().hasPath())
|
if (destination instanceof Entity && previousLoc != null && previousLoc.equals(loc) && mover.getWalkingQueue().hasPath())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue