From db32ffbad65906185ba768a3dc7364337473b1b2 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期日, 27 七月 2025 20:48:14 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/thread/impl/NyShuttleThread.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java b/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java
index 0baeb1e..19af9d7 100644
--- a/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java
+++ b/src/main/java/com/zy/core/thread/impl/NyShuttleThread.java
@@ -942,7 +942,7 @@
             }
 
             ShuttleCommand firstCommand = originCommands.get(0);
-            ShuttleCommand endCommand = originCommands.get(commands.size() - 1);
+            ShuttleCommand endCommand = originCommands.get(originCommands.size() - 1);
 
             if (firstCommand.getMode() != ShuttleCommandModeType.PALLET_LIFT.id) {
                 return false;

--
Gitblit v1.9.1