diff --git a/src/main/java/net/coderbot/iris/mixin/MixinScreenEffectRenderer.java b/src/main/java/net/coderbot/iris/mixin/MixinScreenEffectRenderer.java index 95a320cfc4..39cf59e23c 100644 --- a/src/main/java/net/coderbot/iris/mixin/MixinScreenEffectRenderer.java +++ b/src/main/java/net/coderbot/iris/mixin/MixinScreenEffectRenderer.java @@ -5,6 +5,7 @@ import net.coderbot.iris.pipeline.WorldRenderingPipeline; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.ScreenEffectRenderer; +import net.minecraft.resources.ResourceLocation; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; @@ -12,8 +13,8 @@ @Mixin(ScreenEffectRenderer.class) public abstract class MixinScreenEffectRenderer { - @Inject(method = "renderWater", at = @At(value = "HEAD"), cancellable = true) - private static void iris$disableUnderWaterOverlayRendering(Minecraft minecraft, PoseStack poseStack, CallbackInfo ci) { + @Inject(method = "renderFluid", at = @At(value = "HEAD"), cancellable = true, remap = false) + private static void iris$disableUnderWaterOverlayRendering(Minecraft minecraft, PoseStack poseStack, ResourceLocation texture, CallbackInfo ci) { WorldRenderingPipeline pipeline = Iris.getPipelineManager().getPipelineNullable(); if (pipeline != null && !pipeline.shouldRenderUnderwaterOverlay()) {