Use World singleton

refactor
HumanoidSandvichDispenser 2024-06-06 09:21:39 -07:00
parent a67dedf3f9
commit 4f3d5dd316
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public partial class Spawner : Node2D
var chr = Character.Instantiate<Characters.Character>();
chr.GlobalPosition = randPos;
this.GetAncestor<Scenes.Map>().Entities.AddChild(chr);
World.Instance.CurrentMap.Entities.AddChild(chr);
}
}
}