Skip to content

Commit

Permalink
Update MixinHeldItemRenderer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
I-No-oNe committed Jun 28, 2024
1 parent 23ec4c1 commit 42619df
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 42619df

Please sign in to comment.