summaryrefslogtreecommitdiffstats
path: root/world/chunk/ChunkLoader.gd
diff options
context:
space:
mode:
Diffstat (limited to 'world/chunk/ChunkLoader.gd')
-rw-r--r--world/chunk/ChunkLoader.gd3
1 files changed, 1 insertions, 2 deletions
diff --git a/world/chunk/ChunkLoader.gd b/world/chunk/ChunkLoader.gd
index 0ea422a..5b1c2c0 100644
--- a/world/chunk/ChunkLoader.gd
+++ b/world/chunk/ChunkLoader.gd
@@ -126,6 +126,5 @@ func finish_chunk(chunk):
var coords = v2_coords(chunk.transform.origin)
loaded_chunks[coords] = weakref(chunk)
var monument = ChunkGen.get_monument_at_chunk(coords)
- if monument != null:
- if monument.loaded_chunk == null:
+ if monument != null && monument.loaded_chunk == null:
monument.loaded_chunk = coords