Skip to content

Commit

Permalink
Set singleton name before adding it to tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryhon0 committed Oct 14, 2024
1 parent e4ba3c1 commit 809ad1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Injector/ModLoader/ModLoader.gd
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ func _ready():
node = autoloadRes.instantiate()

if node is Node:
get_tree().root.add_child(node)
node.name = k
get_tree().root.add_child(node)
print("Created autoload ", k, " defined by mod '", modname, "'")
else:
printerr("Autoload '", path, "' defined by mod '", modname, "' does not extend class Node!")
Expand Down
2 changes: 1 addition & 1 deletion Injector/VM_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.3.1

0 comments on commit 809ad1e

Please sign in to comment.