From 42619dfe588d1c08a8821881a55c1b238beedd7f Mon Sep 17 00:00:00 2001 From: I-No-oNe <145749961+I-No-oNe@users.noreply.github.com> Date: Fri, 28 Jun 2024 11:11:41 +0300 Subject: [PATCH] Update MixinHeldItemRenderer.java --- .../net/i_no_am/viewmodel/mixin/MixinHeldItemRenderer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/i_no_am/viewmodel/mixin/MixinHeldItemRenderer.java b/src/main/java/net/i_no_am/viewmodel/mixin/MixinHeldItemRenderer.java index 64c9467..d10961b 100644 --- a/src/main/java/net/i_no_am/viewmodel/mixin/MixinHeldItemRenderer.java +++ b/src/main/java/net/i_no_am/viewmodel/mixin/MixinHeldItemRenderer.java @@ -7,7 +7,6 @@ import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.item.HeldItemRenderer; import net.minecraft.client.util.math.MatrixStack; -import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; import net.minecraft.util.Arm; import net.minecraft.util.Hand; @@ -85,7 +84,7 @@ private void scaleForHands(AbstractClientPlayerEntity player, float tickDelta, f @Inject(method = "applyEatOrDrinkTransformation", at = @At("HEAD"), cancellable = true) - public void OnApplyEatOrDrinkTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack, PlayerEntity player, CallbackInfo ci) { + public void OnApplyEatOrDrinkTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack, CallbackInfo ci) { if ((Boolean) ConfigManager.get(ViewModelSettings.NO_FOOD_SWING).getVal()) { ci.cancel(); }