Root nodes join through ModRoot.AddDeferred, so a reload that unloads the mod first never hands Godot a freed node
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e0bc983f39
commit
55caaf020d
6 files changed
+6
-6
No files matched your search
@@ -27,7 +27,7 @@ namespace Mods.DisplaySettingsTest
|
||||
|
||||
queued = true;
|
||||
GameLogger.Log("TEST", "DisplaySettingsTest: activating");
|
||||
(Godot.Engine.GetMainLoop() as SceneTree)?.Root?.CallDeferred("add_child", new DisplaySettingsTestDriverNode(shots));
|
||||
ModRoot.AddDeferred(new DisplaySettingsTestDriverNode(shots));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user