Fix Item being parented to Players node

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

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

Loading…
Cancel
Save