From 06e0ac39a6278980920a0008090dc567df219422 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 23 Jan 2023 00:20:50 +0000 Subject: [PATCH] Fix mixin --- .../unicopia/mixin/client/MixinHeldItemRenderer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinHeldItemRenderer.java b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinHeldItemRenderer.java index c99f0546..8ace2c63 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinHeldItemRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinHeldItemRenderer.java @@ -1,5 +1,6 @@ package com.minelittlepony.unicopia.mixin.client; +import org.objectweb.asm.Opcodes; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.gen.Invoker; @@ -46,7 +47,8 @@ abstract class MixinHeldItemRenderer implements FirstPersonRendererOverrides.Arm method = "renderItem(FLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;Lnet/minecraft/client/network/ClientPlayerEntity;I)V", at = @At( value = "FIELD", - target = "net/minecraft/client/render/item/HeldItemRenderer$HandRenderType.renderMainHand", + target = "net/minecraft/client/render/item/HeldItemRenderer$HandRenderType.renderMainHand:Z", + opcode = Opcodes.GETFIELD, shift = Shift.BEFORE ), cancellable = true)