Fix Item being parented to Players node

main
copygirl 1 year ago
parent 68e5cc36a8
commit e7b6c15600
  1. 3
      player/PickupController.cs

@ -13,8 +13,7 @@ public partial class PickupController : Node3D
{
_player = GetParent<Player>();
// TODO: Find a better way to find the world.
// For now we just use the parent of the `Player` object.
_world = _player.GetParent<Node3D>();
_world = GetNode<Node3D>("/root/Game/Workshop");
}
public override void _UnhandledInput(InputEvent @event)

Loading…
Cancel
Save