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
f8ab5f92cd
commit
4939cfecd6
1 file changed
+1
-1
@@ -29,7 +29,7 @@ namespace Mods.TestDefaultsAndPatches
|
||||
return;
|
||||
queued = true;
|
||||
GameLogger.Log("TEST", "PropertyPatchesTest: activating");
|
||||
(Godot.Engine.GetMainLoop() as SceneTree)?.Root?.CallDeferred("add_child", new PropertyPatchesTestDriverNode());
|
||||
ModRoot.AddDeferred(new PropertyPatchesTestDriverNode());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user