diff --git a/objects/item_spawner.gd b/objects/item_spawner.gd index e53f1da..3dbd060 100644 --- a/objects/item_spawner.gd +++ b/objects/item_spawner.gd @@ -9,6 +9,6 @@ extends Node3D func spawn() -> void: if randf() < spawn_chance: var pickup_item:PickupItem = pickup_item_scene.instantiate() + pickup_item.item = load("res://data/items/seeds.tres") get_parent().add_child(pickup_item) pickup_item.global_transform = global_transform - pickup_item.item = load("res://data/items/seeds.tres")