mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-14 08:16:13 +01:00
Fix Sodium mixin not being remapped in prod
This commit is contained in:
parent
bbc5cc60bf
commit
2b5e71e172
1 changed files with 1 additions and 1 deletions
|
@ -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()))
|
||||
|
|
Loading…
Reference in a new issue