修复ah6 damageModifier调用错误

This commit is contained in:
Light_Quanta 2025-02-23 07:00:33 +08:00
parent dad96db966
commit b78069fd31
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -138,7 +138,7 @@ public class Ah6Entity extends ContainerMobileEntity implements GeoEntity, IHeli
}
this.level().playSound(null, this.getOnPos(), ModSounds.HIT.get(), SoundSource.PLAYERS, 1, 1);
amount = getDamageModifier().compute(source, amount);
amount = damageModifier.compute(source, amount);
super.hurt(source, amount);
this.hurt(amount, source.getEntity(), true);