mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-25 01:24:23 +00:00
Fix spawner sometimes failing to spawn
This commit is contained in:
parent
8ed5cccabb
commit
0c2cefb255
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ func spawn():
|
|||
entity.global_scale = global_scale
|
||||
entity.global_position = global_position
|
||||
entity.global_rotation = global_rotation
|
||||
parent.add_child(entity)
|
||||
parent.add_child.call_deferred(entity) # Not sure why this is needed.
|
||||
|
||||
func _ready():
|
||||
if parent == null:
|
||||
|
|
Loading…
Reference in a new issue