Skip to content

Commit

Permalink
fix crash on null explore
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Apr 23, 2024
1 parent 0fd0919 commit 5ff6a83
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 @@ -94,6 +94,7 @@ public static Pair<TerrainTileProvider, TileElevation> terrainToTile(World world

int worldHeight = world.getTopY();
ChunkSummary chunk = WorldSummary.of(world).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 summary = chunk.toSingleLayer(null, null, world.getTopY());
IndexedIterable<Biome> biomePalette = WorldSummary.of(world).terrain().getBiomePalette(pos);
IndexedIterable<Block> blockPalette = WorldSummary.of(world).terrain().getBlockPalette(pos);
Expand Down

0 comments on commit 5ff6a83

Please sign in to comment.