From 1f0ca6286adeeb23ab6cf7a286bb35030ccba614 Mon Sep 17 00:00:00 2001 From: Persephone Bubblegum-Holiday Date: Wed, 13 Aug 2025 19:29:52 -0700 Subject: [PATCH] fix bugs with editor and multiple mods --- Scripts/MainMenu.gd | 4 ++-- Scripts/MovementButton.gd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/MainMenu.gd b/Scripts/MainMenu.gd index df353af..4cff79b 100644 --- a/Scripts/MainMenu.gd +++ b/Scripts/MainMenu.gd @@ -23,7 +23,7 @@ func _ready(): moddir.list_dir_begin() for file: String in moddir.get_files(): if (!file.ends_with(".pck")): return - ProjectSettings.load_resource_pack("user://Mods/%s" % file, true) + ProjectSettings.load_resource_pack("user://Mods/%s" % file) var dir = DirAccess.open("res://LoadedModContent/ModManifest") if dir == null: @@ -36,7 +36,7 @@ func _ready(): if (Stages.loaded_mods.get(modManifest.ModInfo["mod_name"]) != null): if (tempLoadedList.find(modManifest.ModInfo["mod_name"]) == -1): $ModsScreen/DialogPanel/ModList.add_item(modManifest.ModInfo["mod_name"], null, true) - return + continue Stages.loaded_mods[modManifest.ModInfo["mod_name"]] = modManifest.ModInfo for stage in modManifest.ModInfo["implements_stages"]: Stages.stages_info[stage] = modManifest.ModInfo["implements_stages"][stage] diff --git a/Scripts/MovementButton.gd b/Scripts/MovementButton.gd index 2e7e1c5..de6ca12 100644 --- a/Scripts/MovementButton.gd +++ b/Scripts/MovementButton.gd @@ -26,10 +26,10 @@ func _ready() -> void: in_flow = flow_control.in_value out_flow = flow_control.out_value -func _update_in_flow(new_value: float) -> void: +func _update_in_flow(new_value: float, _internal_id) -> void: in_flow = new_value -func _update_out_flow(new_value: float) -> void: +func _update_out_flow(new_value: float, _internal_id) -> void: out_flow = new_value func _on_button_button_down() -> void: