Fixed error in item spawner.

main
Martin Felis 2024-11-15 11:05:32 +01:00
parent 75fbb72da1
commit 8fdee7642c
1 changed files with 1 additions and 1 deletions

View File

@ -9,6 +9,6 @@ extends Node3D
func spawn() -> void: func spawn() -> void:
if randf() < spawn_chance: if randf() < spawn_chance:
var pickup_item:PickupItem = pickup_item_scene.instantiate() var pickup_item:PickupItem = pickup_item_scene.instantiate()
pickup_item.item = load("res://data/items/seeds.tres")
get_parent().add_child(pickup_item) get_parent().add_child(pickup_item)
pickup_item.global_transform = global_transform pickup_item.global_transform = global_transform
pickup_item.item = load("res://data/items/seeds.tres")