From 39b55476e6ae8a43c807476348351bb1509b26e2 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 22 May 2023 03:22:22 -0400 Subject: Queue Iceland Traps for later in map load This way they don't get overridden by the environment being set naturally. --- Archipelago/load.gd | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Archipelago/load.gd') diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 052aa84..6860de7 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd @@ -324,6 +324,15 @@ func _load(): apclient.mapFinishedLoading() +func _load_user_textures(): + # We are using this function as a hook to process queued Iceland Traps + # because it happens after the environment gets set. + var effects_node = get_tree().get_root().get_node("Spatial/AP_Effects") + effects_node.activate() + + ._load_user_textures() + + func sort_by_link(a, b): return a["link"] < b["link"] -- cgit 1.4.1