From 980b333d5f7a548c4b639fba215d1e68a781abcc Mon Sep 17 00:00:00 2001 From: yuliang <398780299@qq.com> Date: Mon, 23 Jun 2025 21:09:48 +0800 Subject: [PATCH] =?UTF-8?q?cl2=20=E6=8E=A5=E5=85=A5amr=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/cl2/Cl2Entity.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/cl2/Cl2Entity.ts b/src/modules/cl2/Cl2Entity.ts index 7dfac56..591c8a5 100644 --- a/src/modules/cl2/Cl2Entity.ts +++ b/src/modules/cl2/Cl2Entity.ts @@ -32,15 +32,15 @@ export default class Cl2Entity extends BaseEntity { throw new Error('Invalid task'); } else if (startX === link.X) { if (startY < link.Y && link.Speed > 0 || startY > link.Y && link.Speed < 0) { - moveDirection = 3 - } else { moveDirection = 1 + } else { + moveDirection = 3 } } else { if (startX > link.X && link.Speed > 0 || startX < link.X && link.Speed < 0) { - moveDirection = 2 - } else { moveDirection = 0 + } else { + moveDirection = 2 } } this.taskQueue.add(this.createTask('ROTATION',