Fix section null pointer error for MC 1.16

This commit is contained in:
James Seibel
2023-10-18 22:01:36 -05:00
parent 0cb0874c54
commit 826b4a6305
@@ -170,7 +170,7 @@ public class ChunkWrapper implements IChunkWrapper
for (int index = 0; index < sections.length; index++)
{
#if MC_1_16_5
if (!sections[index].isEmpty())
if (sections[index] != null && !sections[index].isEmpty())
{
// convert from an index to a block coordinate
return this.chunk.getSections()[index].bottomBlockY() * 16;