Skip to content

Commit

Permalink
Fix missing null check on terrainToTileNether
Browse files Browse the repository at this point in the history
  • Loading branch information
limelier committed Aug 24, 2024
1 parent 58ad09a commit 0b1e6a4
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 0b1e6a4

Please sign in to comment.