Fix in editor level generation.

This commit is contained in:
Relintai 2021-04-19 17:33:57 +02:00
parent e582f4d6e5
commit a8ec0ec501

View File

@ -153,7 +153,7 @@ func _process(delta):
for y in range(-1 + cpos.y, spawn_height + cpos.y): for y in range(-1 + cpos.y, spawn_height + cpos.y):
if not chunk_has(x, z): if not chunk_has(x, z):
# print("spawn " + str(Vector3(x, y, z))) #print("spawn " + str(Vector2(x, z)))
chunk_create(x, z) chunk_create(x, z)
update_lods() update_lods()
@ -293,7 +293,7 @@ func set_editor_generate(value : bool) -> void:
if value: if value:
library.refresh_rects() library.refresh_rects()
#level_generator.setup(self, current_seed, false, library) level_generator.setup(self, current_seed, false, library)
spawn(0, 0) spawn(0, 0)
# else: # else:
# spawned = false # spawned = false