From deacf374ebc632b08ff027e26cb91e68f00db972 Mon Sep 17 00:00:00 2001 From: Erick Zanardo Date: Mon, 7 Mar 2022 15:54:40 -0300 Subject: [PATCH] fix: changing ball spawning point to avoid context errors --- lib/game/pinball_game.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index ef51656a..f805ddb8 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -142,4 +142,10 @@ class PinballGame extends Forge2DGame with FlameBloc, KeyboardEvents { super.onAttach(); spawnBall(); } + + @override + void onAttach() { + super.onAttach(); + spawnBall(); + } }