Skip to content

Commit 66993b9

Browse files
committed
refactor: ♻️ update *config.gd* to use only_once arg
1 parent 76a9b01 commit 66993b9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

addons/mod_loader/api/config.gd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ static func get_mod_config(mod_dir_name: String = "", key: String = "") -> Dicti
7070
# No user config file exists. Low importance as very likely to trigger
7171
var full_msg = "Config JSON Notice: %s" % status_msg
7272
# Only log this once, to avoid flooding the log
73-
if not ModLoaderStore.logged_messages.has(full_msg):
74-
ModLoaderUtils.log_debug(full_msg, mod_dir_name)
75-
ModLoaderStore.logged_messages.push_back(full_msg)
73+
ModLoaderLog.debug(full_msg, mod_dir_name, true)
7674
else:
7775
# Code error (eg. invalid mod ID)
7876
ModLoaderUtils.log_fatal("Config JSON Error (%s): %s" % [status_code, status_msg], mod_dir_name)

0 commit comments

Comments
 (0)