diff --git a/src/PropertyPatchesTest.cs b/src/PropertyPatchesTest.cs index 011bd14..49c54ef 100644 --- a/src/PropertyPatchesTest.cs +++ b/src/PropertyPatchesTest.cs @@ -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()); } }