From 8fdee7642cfc8ca676bdfab95b9b06f88f0903da Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Fri, 15 Nov 2024 11:05:32 +0100 Subject: [PATCH] Fixed error in item spawner. --- objects/item_spawner.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")