Skip to content

Commit 97eda11

Browse files
authored
fix: 🐛 fix wrong function call (#235)
`ModLoader._remove_extension()` -> `_ModLoaderScriptExtension.remove_specific_extension_from_script()`
1 parent a8b2239 commit 97eda11

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

addons/mod_loader/api/mod.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ static func install_script_extension(child_script_path:String) -> void:
2525

2626

2727
static func uninstall_script_extension(extension_script_path: String) -> void:
28-
2928
# Currently this is the only thing we do, but it is better to expose
3029
# this function like this for further changes
31-
ModLoader._remove_extension(extension_script_path)
30+
_ModLoaderScriptExtension.remove_specific_extension_from_script(extension_script_path)
3231

3332

3433
# This function should be called only when actually necessary

addons/mod_loader/internal/script_extension.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static func remove_all_extensions_from_all_scripts() -> void:
153153

154154

155155
# Used to remove a specific extension
156-
static func _remove_specific_extension_from_script(extension_path: String) -> void:
156+
static func remove_specific_extension_from_script(extension_path: String) -> void:
157157
# Check path to file exists
158158
if not ModLoaderUtils.file_exists(extension_path):
159159
ModLoaderLog.error("The extension script path \"%s\" does not exist" % [extension_path], LOG_NAME)

0 commit comments

Comments
 (0)