mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 13:37:58 +01:00
Fix mixin
This commit is contained in:
parent
1ca7407642
commit
06e0ac39a6
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue