Skip to content

Commit

Permalink
Merge pull request #202 from limelier/1.20
Browse files Browse the repository at this point in the history
Fix missing null check on terrainToTileNether
  • Loading branch information
sisby-folk authored Aug 24, 2024
2 parents 58ad09a + 0b1e6a4 commit d8fa9aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/folk/sisby/antique_atlas/TerrainTiling.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public static Pair<TerrainTileProvider, TileElevation> terrainToTileNether(World
WorldTerrainSummary terrain = WorldSummary.of(world).terrain();
if (terrain == null) return null;
ChunkSummary chunk = terrain.get(pos);
if (chunk == null) return null; // Skip events fired for chunks we don't have yet (e.g. new shares)
@Nullable LayerSummary.Raw lowSummary = chunk.toSingleLayer(null, NETHER_SCAN_HEIGHT, world.getTopY());
@Nullable LayerSummary.Raw fullSummary = chunk.toSingleLayer(null, world.getBottomY() + world.getDimension().logicalHeight() - 1, world.getTopY());
IndexedIterable<Biome> biomePalette = terrain.getBiomePalette(pos);
Expand Down

0 comments on commit d8fa9aa

Please sign in to comment.