From a5534fa257f7c8f3b324bf95c472f9c51e4f55bd Mon Sep 17 00:00:00 2001 From: Erick Date: Mon, 4 Apr 2022 09:39:16 -0300 Subject: [PATCH] Update lib/game/components/controlled_ball.dart Co-authored-by: Alejandro Santiago --- lib/game/components/controlled_ball.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/game/components/controlled_ball.dart b/lib/game/components/controlled_ball.dart index 0e37ed7f..1981e39c 100644 --- a/lib/game/components/controlled_ball.dart +++ b/lib/game/components/controlled_ball.dart @@ -88,7 +88,7 @@ class LaunchedBallController extends BallController void onNewState(GameState state) { super.onNewState(state); component.shouldRemove = true; - if (state.balls >= 1) gameRef.spawnBall(); + if (state.balls > 0) gameRef.spawnBall(); } /// Removes the [Ball] from a [PinballGame]; spawning a new [Ball] if