damage can also be reported if its == 0. Might be useful

This commit is contained in:
gnembon committed 2021-04-25 00:50:06 -03:00
1 parent 28101e716b
commit 33c0cc6979
2 files changed
+2 -2

No files matched your search

@@ -39,7 +39,7 @@ public abstract class LivingEntity_scarpetEventsMixin extends Entity implements
@Inject(method = "applyDamage", locals = LocalCapture.CAPTURE_FAILHARD, at = @At(
value = "INVOKE",
target = "Lnet/minecraft/entity/LivingEntity;getHealth()F",
target = "Lnet/minecraft/entity/LivingEntity;applyArmorToDamage(Lnet/minecraft/entity/damage/DamageSource;F)F",
shift = At.Shift.BEFORE
))
private void entityTakingDamage(DamageSource source, float amount, CallbackInfo ci)