fix bugs with editor and multiple mods

This commit is contained in:
Persephone Bubblegum-Holiday 2025-08-13 19:29:52 -07:00
parent 768bf2fda4
commit 1f0ca6286a
2 changed files with 4 additions and 4 deletions

View file

@ -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]