From 28b168e742bcbeee9f864bcfd2845eca97de6b57 Mon Sep 17 00:00:00 2001 From: Doggo Date: Sat, 8 Jun 2024 12:23:06 +0000 Subject: [PATCH] Fixed 1 tick movement delay on some actions --- Server/src/main/core/game/interaction/MovementPulse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/core/game/interaction/MovementPulse.java b/Server/src/main/core/game/interaction/MovementPulse.java index ca60a54cf..04c9d2a8d 100644 --- a/Server/src/main/core/game/interaction/MovementPulse.java +++ b/Server/src/main/core/game/interaction/MovementPulse.java @@ -312,7 +312,7 @@ public abstract class MovementPulse extends Pulse { if (interactLocation == null) 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()) return; if (destination instanceof Entity && previousLoc != null && previousLoc.equals(loc) && mover.getWalkingQueue().hasPath())