From e7b6c15600407d13aae9d220aa1d9615c6366d3a Mon Sep 17 00:00:00 2001 From: copygirl Date: Tue, 26 Dec 2023 14:49:26 +0100 Subject: [PATCH] Fix Item being parented to Players node --- player/PickupController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/player/PickupController.cs b/player/PickupController.cs index 8b1388e..9b6eb85 100644 --- a/player/PickupController.cs +++ b/player/PickupController.cs @@ -13,8 +13,7 @@ public partial class PickupController : Node3D { _player = GetParent(); // TODO: Find a better way to find the world. - // For now we just use the parent of the `Player` object. - _world = _player.GetParent(); + _world = GetNode("/root/Game/Workshop"); } public override void _UnhandledInput(InputEvent @event)