diff --git a/utils/world_generation/WorldGeneration.gd b/utils/world_generation/WorldGeneration.gd index 2daf6e4..bc8fa34 100644 --- a/utils/world_generation/WorldGeneration.gd +++ b/utils/world_generation/WorldGeneration.gd @@ -272,7 +272,7 @@ func fill_oceans(): stack.append(first_center.get_index()) while stack.size(): - var current_point_id = stack.pop_front() + var current_point_id = stack.pop_back() Global.terrain.get_point(current_point_id).set_data("ocean", true) for neighbour in Global.terrain.get_point(current_point_id).points_around(): if neighbour.get_data("water") and not neighbour.get_data("ocean"): diff --git a/world/World3d.gd b/world/World3d.gd index fc62da8..b8e2e2d 100644 --- a/world/World3d.gd +++ b/world/World3d.gd @@ -10,7 +10,7 @@ var thread func _ready(): # add_world() thread = Thread.new() - add_trees() + # add_trees() func add_world(): var terrain_mesh = TerrainMesh.new()