parent
89b7eb47b4
commit
7894e4fa9a
|
@ -966,8 +966,13 @@ public abstract class LivingEntityMixin extends EntityMixin implements LivingEnt
|
|||
return CraftEventFactory.handleBlockFormEvent(instance, pPos, pNewState, 3, (Entity) (Object) this);
|
||||
}
|
||||
|
||||
// https://github.com/IzzelAliz/Arclight/issues/831
|
||||
@Mixin(value = LivingEntity.class, priority = 1500)
|
||||
public static class ObscureApiCompat {
|
||||
|
||||
@Redirect(method = "getDamageAfterArmorAbsorb", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;hurtArmor(Lnet/minecraft/world/damagesource/DamageSource;F)V"))
|
||||
public void arclight$muteDamageArmor(LivingEntity entity, DamageSource damageSource, float damage) {
|
||||
private void arclight$muteDamageArmor(LivingEntity entity, DamageSource damageSource, float damage) {
|
||||
}
|
||||
}
|
||||
|
||||
@Redirect(method = "getDamageAfterMagicAbsorb", require = 0, at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;hasEffect(Lnet/minecraft/world/effect/MobEffect;)Z"))
|
||||
|
|
|
@ -96,6 +96,7 @@
|
|||
"world.entity.ItemBaseSteeringMixin",
|
||||
"world.entity.LightningBoltMixin",
|
||||
"world.entity.LivingEntityMixin",
|
||||
"world.entity.LivingEntityMixin$ObscureApiCompat",
|
||||
"world.entity.MobMixin",
|
||||
"world.entity.PathfinderMobMixin",
|
||||
"world.entity.ai.behavior.AssignProfessionFromJobSiteMixin",
|
||||
|
|
Loading…
Reference in New Issue
Block a user