Enabled y sorting for terraman's world.

This commit is contained in:
Relintai 2022-03-01 22:03:34 +01:00
parent 1b375d109d
commit 3cba2b5dae

View File

@ -37,6 +37,8 @@ func _enter_tree():
if !Engine.editor_hint && generate_on_ready:
spawn(0, 0)
VisualServer.canvas_item_set_sort_children_by_y(get_canvas_item(), true)
func spawn(x, y):
chunks_clear()