修复飞行载具坠机判定问题
This commit is contained in:
parent
55d29691c3
commit
3d89adf341
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue