fix bugs with editor and multiple mods
This commit is contained in:
parent
768bf2fda4
commit
1f0ca6286a
2 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue