添加载具被击毁伤害类型,删除炮的被熏黑图层

This commit is contained in:
Atsuihsio 2025-01-14 20:44:41 +08:00
parent 45f0a9f971
commit d021cce8f0

View file

@ -424,8 +424,7 @@ public class Ah6Entity extends ContainerMobileEntity implements GeoEntity, IHeli
living.hurt(ModDamageTypes.causeAirCrashDamage(this.level().registryAccess(), null, tempAttacker), Integer.MAX_VALUE);
}
}
}
} else {
List<Entity> passengers = this.getPassengers();
for (var entity : passengers) {
if (entity instanceof LivingEntity living) {
@ -442,6 +441,7 @@ public class Ah6Entity extends ContainerMobileEntity implements GeoEntity, IHeli
living.hurt(ModDamageTypes.causeVehicleExplosionDamage(this.level().registryAccess(), null, tempAttacker), Integer.MAX_VALUE);
}
}
}
if (level() instanceof ServerLevel) {
CustomExplosion explosion = new CustomExplosion(this.level(), this,