From 2b5e71e172bf9481f857c989cb6a4f4494694e06 Mon Sep 17 00:00:00 2001 From: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Date: Sun, 6 Feb 2022 12:38:47 -0800 Subject: [PATCH] Fix Sodium mixin not being remapped in prod --- .../fabric/mixin/sodium/ChunkRenderRebuildTaskMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/jozufozu/flywheel/fabric/mixin/sodium/ChunkRenderRebuildTaskMixin.java b/src/main/java/com/jozufozu/flywheel/fabric/mixin/sodium/ChunkRenderRebuildTaskMixin.java index 941ea2948..75db3f60c 100644 --- a/src/main/java/com/jozufozu/flywheel/fabric/mixin/sodium/ChunkRenderRebuildTaskMixin.java +++ b/src/main/java/com/jozufozu/flywheel/fabric/mixin/sodium/ChunkRenderRebuildTaskMixin.java @@ -15,7 +15,7 @@ import net.minecraft.world.level.block.entity.BlockEntity; @Mixin(value = ChunkRenderRebuildTask.class, remap = false) public class ChunkRenderRebuildTaskMixin { - @Redirect(method = "performBuild", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/blockentity/BlockEntityRenderDispatcher;getRenderer(Lnet/minecraft/world/level/block/entity/BlockEntity;)Lnet/minecraft/client/renderer/blockentity/BlockEntityRenderer;")) + @Redirect(method = "performBuild", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/blockentity/BlockEntityRenderDispatcher;getRenderer(Lnet/minecraft/world/level/block/entity/BlockEntity;)Lnet/minecraft/client/renderer/blockentity/BlockEntityRenderer;", remap = true)) private BlockEntityRenderer redirectGetRenderer(BlockEntityRenderDispatcher dispatcher, BlockEntity blockEntity) { if (Backend.canUseInstancing(blockEntity.getLevel())) { if (InstancedRenderRegistry.canInstance(blockEntity.getType()))