Fixed error in item spawner.
parent
75fbb72da1
commit
8fdee7642c
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue