From b60cf92f0681eb33700574d01e6b089d145c1fab Mon Sep 17 00:00:00 2001 From: Asek3 <64613894+Asek3@users.noreply.github.com> Date: Fri, 26 Jan 2024 11:31:58 +0200 Subject: [PATCH] use correct? face i am not entirely sure that null-face shouldn't crash at all, but if it wouldn't, i believe we should use face with ordinal 0 --- .../mods/sodium/client/render/pipeline/BlockRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/jellysquid/mods/sodium/client/render/pipeline/BlockRenderer.java b/src/main/java/me/jellysquid/mods/sodium/client/render/pipeline/BlockRenderer.java index b3757f232..aff52b962 100644 --- a/src/main/java/me/jellysquid/mods/sodium/client/render/pipeline/BlockRenderer.java +++ b/src/main/java/me/jellysquid/mods/sodium/client/render/pipeline/BlockRenderer.java @@ -107,7 +107,7 @@ private void renderQuadList(IBlockAccess world, IBlockState state, BlockPos pos, // TODO: Does null mean we should treat it as non-axis-aligned? EnumFacing quadFace = quad.getFace(); if (quadFace == null) { - quadFace = EnumFacing.UP; + quadFace = EnumFacing.DOWN; } lighter.calculate((ModelQuadView) quad, pos, light, cullFace, quadFace, quad.shouldApplyDiffuseLighting());