diff --git a/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/compile/pipeline/BlockRenderer.java b/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/compile/pipeline/BlockRenderer.java index fee294d176..c8e223a4cb 100644 --- a/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/compile/pipeline/BlockRenderer.java +++ b/common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/compile/pipeline/BlockRenderer.java @@ -187,7 +187,7 @@ private void bufferQuad(MutableQuadViewImpl quad, float[] brightnesses, Material // attempt render pass downgrade if possible var pass = material.pass; - var downgradedPass = attemptPassDowngrade(quad, atlasSprite, pass); + var downgradedPass = attemptPassDowngrade(atlasSprite, pass); if (downgradedPass != null) { pass = downgradedPass; } @@ -228,7 +228,7 @@ private boolean validateQuadUVs(TextureAtlasSprite atlasSprite) { return true; } - private TerrainRenderPass attemptPassDowngrade(MutableQuadViewImpl quad, TextureAtlasSprite sprite, TerrainRenderPass pass) { + private TerrainRenderPass attemptPassDowngrade(TextureAtlasSprite sprite, TerrainRenderPass pass) { boolean attemptDowngrade = true; boolean hasNonOpaqueVertex = false;