Skip to content

Commit

Permalink
Merge pull request #2 from clemens-tolboom/use_deferred
Browse files Browse the repository at this point in the history
Remove spawning errors
  • Loading branch information
illogicalapple committed May 1, 2023
2 parents 95c9b12 + 9af15d6 commit 362f8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobs/pirate/evil_ship.gd
Expand Up @@ -43,5 +43,5 @@ func _on_body_entered(body):
if body.name == "BoatCollisions":
linear_velocity = Vector2.ZERO
thingy = false
spawn(10)
call_deferred("spawn", 10)
sleeping = true

0 comments on commit 362f8e2

Please sign in to comment.