mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-21 23:54:23 +00:00
Revert call deferred thing
This commit is contained in:
parent
05bb27d965
commit
9abb03a088
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ func spawn():
|
||||||
return null
|
return null
|
||||||
var entity = scene.instantiate()
|
var entity = scene.instantiate()
|
||||||
entity.global_position = global_position
|
entity.global_position = global_position
|
||||||
target.add_child(entity)
|
target.add_child.call_deferred(entity)
|
||||||
spawned.emit(entity)
|
spawned.emit(entity)
|
||||||
return entity
|
return entity
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue