Update AbstractHurtingProjectile signature

This commit is contained in:
DBotThePony 2024-08-27 21:33:30 +07:00
parent b939f7b020
commit fa3d754455
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -1,15 +1,13 @@
package ru.dbotthepony.mc.otm.mixin;
import net.minecraft.sounds.SoundSource;
import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.projectile.AbstractHurtingProjectile;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import ru.dbotthepony.mc.otm.capability.IMatteryPlayer;
import ru.dbotthepony.mc.otm.capability.MatteryCapability;
import ru.dbotthepony.mc.otm.registry.MSoundEvents;
@Mixin(AbstractHurtingProjectile.class)
@ -19,7 +17,7 @@ public class MixinAbstractHurtingProjectile {
remap = false,
at = @At("TAIL")
)
public void onDeflection(Entity entity, boolean byAttack, CallbackInfoReturnable<Boolean> cir) {
public void onDeflection(Entity entity, boolean byAttack, CallbackInfo info) {
if (entity instanceof IMatteryPlayer player) {
var cap = player.getOtmPlayer();