From 6a5f7a0f2ae1241670dd49809f618ec8d6c7adfa Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Thu, 5 Dec 2024 21:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=86=99=E6=BF=80=E5=85=89=E7=82=AE?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/entity/AnnihilatorEntity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/AnnihilatorEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/AnnihilatorEntity.java index 53232182d..337e27e2a 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/AnnihilatorEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/AnnihilatorEntity.java @@ -101,6 +101,15 @@ public class AnnihilatorEntity extends Entity implements GeoEntity, ICannonEntit } } + // TODO 修改乘客的位置 + @Override + protected void positionRider(Entity pPassenger, MoveFunction pCallback) { + if (this.hasPassenger(pPassenger)) { + double d0 = this.getY() + this.getPassengersRidingOffset() + pPassenger.getMyRidingOffset(); + pCallback.accept(pPassenger, this.getX(), d0, this.getZ()); + } + } + @Override public boolean canBeCollidedWith() { return true;