Fix apotheosis mixin conflict (#595)

This commit is contained in:
IzzelAliz 2022-06-20 20:56:34 +08:00
parent 49f8cc9bab
commit 8f1c0e4c92
No known key found for this signature in database
GPG Key ID: EE50E123A11D8338

View File

@ -951,7 +951,7 @@ public abstract class LivingEntityMixin extends EntityMixin implements LivingEnt
public void arclight$muteDamageArmor(LivingEntity entity, DamageSource damageSource, float damage) {
}
@Redirect(method = "getDamageAfterMagicAbsorb", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;hasEffect(Lnet/minecraft/world/effect/MobEffect;)Z"))
@Redirect(method = "getDamageAfterMagicAbsorb", require = 0, at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;hasEffect(Lnet/minecraft/world/effect/MobEffect;)Z"))
public boolean arclight$mutePotion(LivingEntity livingEntity, MobEffect potionIn) {
return false;
}