Update lib/game/components/controlled_ball.dart

Co-authored-by: Alejandro Santiago <dev@alestiago.com>
pull/136/head
Erick 4 years ago committed by GitHub
parent 5f8bddce97
commit a5534fa257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save