Skip to content

Commit 8ee8bf6

Browse files
committed
fix: 🐛 only _handle_mod_config() if there is a schema
1 parent 00b8159 commit 8ee8bf6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

addons/mod_loader/classes/mod_manifest.gd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func _init(manifest: Dictionary) -> void:
9797
compatible_mod_loader_version = _handle_compatible_mod_loader_version(mod_id, godot_details)
9898
description_rich = ModLoaderUtils.get_string_from_dict(godot_details, "description_rich")
9999
tags = ModLoaderUtils.get_array_from_dict(godot_details, "tags")
100-
config_schema = godot_details.config_schema
100+
config_schema = ModLoaderUtils.get_dict_from_dict(godot_details, "config_schema")
101101

102102
if (
103103
not is_mod_id_array_valid(mod_id, dependencies, "dependency") or
@@ -136,7 +136,8 @@ func _init(manifest: Dictionary) -> void:
136136
):
137137
return
138138

139-
_handle_mod_config()
139+
if not config_schema.empty():
140+
_handle_mod_config()
140141

141142

142143
# Mod ID used in the mod loader

0 commit comments

Comments
 (0)