Merge branch 'master' into 1.17
This commit is contained in:
commit
e8ab5f0d50
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(
|
@Inject(method = "applyDamage", locals = LocalCapture.CAPTURE_FAILHARD, at = @At(
|
||||||
value = "INVOKE",
|
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
|
shift = At.Shift.BEFORE
|
||||||
))
|
))
|
||||||
private void entityTakingDamage(DamageSource source, float amount, CallbackInfo ci)
|
private void entityTakingDamage(DamageSource source, float amount, CallbackInfo ci)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public abstract class PlayerEntity_scarpetEventsMixin extends LivingEntity
|
|||||||
|
|
||||||
@Inject(method = "applyDamage", locals = LocalCapture.CAPTURE_FAILHARD, at = @At(
|
@Inject(method = "applyDamage", locals = LocalCapture.CAPTURE_FAILHARD, at = @At(
|
||||||
value = "INVOKE",
|
value = "INVOKE",
|
||||||
target = "Lnet/minecraft/entity/player/PlayerEntity;addExhaustion(F)V"
|
target = "Lnet/minecraft/entity/player/PlayerEntity;applyArmorToDamage(Lnet/minecraft/entity/damage/DamageSource;F)F"
|
||||||
))
|
))
|
||||||
private void playerTakingDamage(DamageSource source, float amount, CallbackInfo ci)
|
private void playerTakingDamage(DamageSource source, float amount, CallbackInfo ci)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user