From aea798837bb404078f7f66ef6abdb7af7b4300fd Mon Sep 17 00:00:00 2001 From: Atsuishio <842960157@qq.com> Date: Sun, 13 Jul 2025 22:27:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E5=B0=91=E7=81=AB=E7=AE=AD=E7=82=AE?= =?UTF-8?q?=E6=8E=A8=E5=8A=A8=E8=B7=9D=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/entity/vehicle/Type63Entity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java index 1bafa0d09..c05012e27 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java @@ -97,6 +97,12 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt this.hoe2 = new OBB(this.position().toVector3f(), new Vector3f(0.125f, 0.125f, 0.875f), new Quaternionf(), OBB.Part.INTERACTIVE); } + @Override + public void playerTouch(Player pPlayer) { + if (pPlayer.position().distanceToSqr(position()) > 1.2) return; + super.playerTouch(pPlayer); + } + @Override protected void defineSynchedData(SynchedEntityData.Builder builder) { super.defineSynchedData(builder);