From 3d89adf341333df9864ef3ed7cd353dcc49bb84d Mon Sep 17 00:00:00 2001 From: Light_Quanta Date: Sun, 23 Feb 2025 00:15:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A3=9E=E8=A1=8C=E8=BD=BD?= =?UTF-8?q?=E5=85=B7=E5=9D=A0=E6=9C=BA=E5=88=A4=E5=AE=9A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../atsuishio/superbwarfare/entity/vehicle/VehicleEntity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/VehicleEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/VehicleEntity.java index 2303735e4..5abb5aa73 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/VehicleEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/VehicleEntity.java @@ -155,6 +155,8 @@ public class VehicleEntity extends Entity { @Override public boolean hurt(DamageSource source, float amount) { + this.crash = source.is(ModDamageTypes.VEHICLE_STRIKE); + if (source.getEntity() != null) { this.entityData.set(LAST_ATTACKER_UUID, source.getEntity().getStringUUID()); }