Update AbstractHurtingProjectile signature
This commit is contained in:
parent
b939f7b020
commit
fa3d754455
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user