From 4f3d5dd316eee43689e8a4ef1c37e9c8db79ab1b Mon Sep 17 00:00:00 2001 From: HumanoidSandvichDispenser Date: Thu, 6 Jun 2024 09:21:39 -0700 Subject: [PATCH] Use World singleton --- Utils/Spawner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/Spawner.cs b/Utils/Spawner.cs index 07a5351..6bacdc4 100644 --- a/Utils/Spawner.cs +++ b/Utils/Spawner.cs @@ -53,7 +53,7 @@ public partial class Spawner : Node2D var chr = Character.Instantiate(); chr.GlobalPosition = randPos; - this.GetAncestor().Entities.AddChild(chr); + World.Instance.CurrentMap.Entities.AddChild(chr); } } }