Skip to content

Commit 47e1e54

Browse files
committed
refactor: ♻️ update *config.gd* to use only_once arg
1 parent 6b80b11 commit 47e1e54

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

addons/mod_loader/api/config.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +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.all.has(full_msg.md5_text()):
74-
ModLoaderLog.debug(full_msg, mod_dir_name)
73+
ModLoaderLog.debug(full_msg, mod_dir_name, true)
7574
else:
7675
# Code error (eg. invalid mod ID)
7776
ModLoaderLog.fatal("Config JSON Error (%s): %s" % [status_code, status_msg], mod_dir_name)

0 commit comments

Comments
 (0)