Skip to content

Commit

Permalink
Fix #77
Browse files Browse the repository at this point in the history
  • Loading branch information
piegamesde committed Apr 4, 2022
1 parent 400a668 commit 1e6ec0c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,14 @@ Color getFinal() {
if (s < lowestLoadedSection) {
try {
var section = sections.get(s);
loadedSections[s + 4] = renderSection(section, blockColors);
if (section == null) {
/* Replace with surrogate empty section */
loadedSections[s + 4] = new BlockColor[4096];
} else {
loadedSections[s + 4] = renderSection(section, blockColors);
}
/* Read the biome for the top layer */
if (loadedTopBiomes == null) {
if (loadedTopBiomes == null && section != null) {
loadedTopBiomes = new String[16];
CompoundTag biomes = section.get("biomes").getAsCompoundTag().get();

Expand Down

0 comments on commit 1e6ec0c

Please sign in to comment.