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);