From 864af56021e784d6ca84ff0222fe6ef5d4056cb7 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 11 May 2024 12:17:32 +0200 Subject: [PATCH] Update to eaa5ce2a2db090637b0600a66785d1c410b2fdf0 --- src/core.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core.gd b/src/core.gd index e11793e..0100e16 100644 --- a/src/core.gd +++ b/src/core.gd @@ -146,7 +146,9 @@ func initialize_scheduler() -> void: scheduler.process_mode = Node.PROCESS_MODE_ALWAYS scheduler.connect("timeout", func() -> void: loggeri.verb("Running scheduler tasks") - for module in modules: await get(module)._schedule() + var modules_reverse: Array[String] = modules.duplicate() + modules_reverse.reverse() + for module in modules_reverse: await get(module)._schedule() for module in custom_modules_node.get_children(): await module._schedule() )