1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-24 00:54:22 +00:00

Revert call deferred thing

This commit is contained in:
Steffo 2024-05-03 02:00:06 +02:00
parent 05bb27d965
commit 9abb03a088
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -40,7 +40,7 @@ func spawn():
return null
var entity = scene.instantiate()
entity.global_position = global_position
target.add_child(entity)
target.add_child.call_deferred(entity)
spawned.emit(entity)
return entity