Skip to content

Commit

Permalink
use correct? face
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Asek3 committed Jan 26, 2024
1 parent d947ba5 commit b60cf92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit b60cf92

Please sign in to comment.