Skip to content

Commit 6bbcf08

Browse files
committed
fix wrong call to ModData, improve static types
1 parent 16e3603 commit 6bbcf08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

addons/mod_loader/mod_loader.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func _load_mod_configs():
266266

267267
for dir_name in mod_data:
268268
var json_path = configs_path.plus_file(dir_name + ".json")
269-
var mod_config = ModData._get_json_as_dict(json_path)
269+
var mod_config = ModLoaderUtils.get_json_as_dict(json_path)
270270

271271
ModLoaderUtils.log_debug(str("Config JSON: Looking for config at path: ", json_path), LOG_NAME)
272272

addons/mod_loader/mod_loader_utils.gd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
extends Node
22
class_name ModLoaderUtils
33

4-
const LOG_NAME = "ModLoader:ModLoaderUtils"
5-
const MOD_LOG_PATH = "user://mods.log"
4+
const LOG_NAME := "ModLoader:ModLoaderUtils"
5+
const MOD_LOG_PATH := "user://mods.log"
66

77
enum verbosity_level {
88
ERROR,
@@ -85,7 +85,7 @@ static func _loader_log(message: String, mod_name: String, log_type: String = "i
8585

8686

8787
static func _write_to_log_file(log_entry: String) -> void:
88-
var log_file = File.new()
88+
var log_file := File.new()
8989

9090
if not log_file.file_exists(MOD_LOG_PATH):
9191
log_file.open(MOD_LOG_PATH, File.WRITE)

0 commit comments

Comments
 (0)