From 55d6d236f99a2970032615a96187f08f6cc28d14 Mon Sep 17 00:00:00 2001 From: Sofia Date: Mon, 3 Aug 2026 20:06:05 +0300 Subject: [PATCH] Fix ball spawn order --- rust/src/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/map.rs b/rust/src/map.rs index 34a9cbd..f0c51c3 100644 --- a/rust/src/map.rs +++ b/rust/src/map.rs @@ -153,13 +153,13 @@ impl Map { { let mut ball = ball_prefab.instantiate_as::(); ball.bind_mut().dropper = player_id; - self.base_mut().add_child(&ball); if let Some(transform) = transform { ball.set_position(transform.location.into()); ball.set_rotation(transform.rotation.into()); } else { ball.set_position(ball_spawner.get_position()); } + self.base_mut().add_child(&ball); if let Some(velocity) = velocity { ball.set_linear_velocity(velocity.into()); }