Fix light engine out of bounds for MC 1.16 and 1.17

This commit is contained in:
James Seibel
2024-01-14 13:27:14 -06:00
parent 46bf8d0188
commit af04c6d995
@@ -243,7 +243,7 @@ public class ChunkWrapper implements IChunkWrapper
{
// convert from an index to a block coordinate
#if MC_VER == MC_1_16_5 || MC_VER == MC_1_17_1
return this.chunk.getSections()[index].bottomBlockY() * 16;
return this.chunk.getSections()[index].bottomBlockY();
#else
return this.chunk.getSectionYFromSectionIndex(index) * 16;
#endif