From b5a115ccea921addc97f5a8ac697a0df05099e1e Mon Sep 17 00:00:00 2001 From: glisco Date: Mon, 9 Dec 2024 22:29:54 +0100 Subject: [PATCH] we love mixin remapping --- .../affinity/mixin/client/iris/SodiumProgramsMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/wispforest/affinity/mixin/client/iris/SodiumProgramsMixin.java b/src/main/java/io/wispforest/affinity/mixin/client/iris/SodiumProgramsMixin.java index 05e335b8..1dae3771 100644 --- a/src/main/java/io/wispforest/affinity/mixin/client/iris/SodiumProgramsMixin.java +++ b/src/main/java/io/wispforest/affinity/mixin/client/iris/SodiumProgramsMixin.java @@ -24,7 +24,7 @@ public class SodiumProgramsMixin { @Unique private static final TerrainRenderPass SKY_PASS = Arrays.stream(DefaultTerrainRenderPasses.ALL).filter(pass -> ((TerrainRenderPassAccessor) pass).affinity$getLayer() == SkyCaptureBuffer.SKY_STENCIL_LAYER).findFirst().get(); - @Inject(method = "mapTerrainRenderPass", at = @At("HEAD"), cancellable = true) + @Inject(method = "mapTerrainRenderPass", at = @At("HEAD"), cancellable = true, remap = false) private void fixSky(TerrainRenderPass pass, CallbackInfoReturnable cir) { if (pass != SKY_PASS) return; cir.setReturnValue(ShadowRenderingState.areShadowsCurrentlyBeingRendered() ? SodiumPrograms.Pass.SHADOW : SodiumPrograms.Pass.TERRAIN);