diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/chunk/ChunkWrapper.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/chunk/ChunkWrapper.java index b0c4f928d..14cb346eb 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/chunk/ChunkWrapper.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/chunk/ChunkWrapper.java @@ -169,8 +169,13 @@ public class ChunkWrapper implements IChunkWrapper LevelChunkSection[] sections = this.chunk.getSections(); for (int index = 0; index < sections.length; index++) { + if (sections[index] == null) + { + continue; + } + #if MC_1_16_5 - if (sections[index] != null && !sections[index].isEmpty()) + if (!sections[index].isEmpty()) { // convert from an index to a block coordinate return this.chunk.getSections()[index].bottomBlockY() * 16;