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)