Skip to content

Commit

Permalink
refactor: ♻️ update *config.gd* to use only_once arg
Browse files Browse the repository at this point in the history
  • Loading branch information
KANAjetzt committed Apr 9, 2023
1 parent 55d71cc commit 80491c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/mod_loader/api/config.gd
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ static func get_mod_config(mod_dir_name: String = "", key: String = "") -> Dicti
# No user config file exists. Low importance as very likely to trigger
var full_msg = "Config JSON Notice: %s" % status_msg
# Only log this once, to avoid flooding the log
if not ModLoaderStore.logged_messages.all.has(full_msg.md5_text()):
ModLoaderLog.debug(full_msg, mod_dir_name)
ModLoaderLog.debug(full_msg, mod_dir_name, true)
else:
# Code error (eg. invalid mod ID)
ModLoaderLog.fatal("Config JSON Error (%s): %s" % [status_code, status_msg], mod_dir_name)
Expand Down

0 comments on commit 80491c5

Please sign in to comment.