Skip to content

Commit

Permalink
fix: body_entered is triggered once more after moving player
Browse files Browse the repository at this point in the history
  • Loading branch information
RunninglVlan committed Jun 4, 2024
1 parent e7373c3 commit 62a014f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions multiplayer/multiplayer_player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,9 @@ func _on_respawn_timer_timeout():
Engine.time_scale = 1
position = Vector2(0, 0)
velocity = Vector2.ZERO

# Workaround for https://github.com/godotengine/godot/issues/45131
await get_tree().physics_frame
await get_tree().physics_frame

collision_shape.set_deferred("disabled", false)

0 comments on commit 62a014f

Please sign in to comment.