Fix off by 1 error in Render data transformer

This commit is contained in:
James Seibel
2024-08-02 18:30:55 -05:00
parent b7fea64925
commit c43b985f4e
@@ -260,7 +260,7 @@ public class FullDataToRenderDataTransformer
// cave culling shouldn't happen when at the top of the world
&& renderDataIndex != 0 && fullDataIndex != 0
// cave culling can't happen when at the bottom of the world
&& fullDataIndex != fullColumnData.size())
&& (fullDataIndex+1) < fullColumnData.size())
{
// we need to get the next sky/block lights because
// the air block here will always have a light of 0/0 due to only the top of the LOD's light being saved.