Skip to content

Commit

Permalink
Add the new chunk to the generation queue instead of directly calling…
Browse files Browse the repository at this point in the history
… it's build method in TerrainWorld::chunk_add().
  • Loading branch information
Relintai committed Feb 8, 2025
1 parent 64a14fe commit a980238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/terraman/world/terrain_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ void TerrainWorld::chunk_add(Ref<TerrainChunk> chunk, const int x, const int z)

emit_signal("chunk_added", chunk);

chunk->build();
generation_queue_add_to(chunk);
}
bool TerrainWorld::chunk_has(const int x, const int z) const {
return _chunks.has(IntPos(x, z));
Expand Down

0 comments on commit a980238

Please sign in to comment.