修复飞行载具坠机判定问题

This commit is contained in:
Light_Quanta 2025-02-23 00:15:54 +08:00
parent 55d29691c3
commit 3d89adf341
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -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());
}