From 09d020fc30edb07364fcc2ad08afbb0135ef137b Mon Sep 17 00:00:00 2001 From: alestiago Date: Sun, 1 May 2022 13:33:45 +0100 Subject: [PATCH] refactor: removed RenderPriority from FlutterForest --- lib/game/components/flutter_forest/flutter_forest.dart | 1 - lib/game/pinball_game.dart | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/game/components/flutter_forest/flutter_forest.dart b/lib/game/components/flutter_forest/flutter_forest.dart index 7508d5c3..6d67881b 100644 --- a/lib/game/components/flutter_forest/flutter_forest.dart +++ b/lib/game/components/flutter_forest/flutter_forest.dart @@ -14,7 +14,6 @@ class FlutterForest extends Component { /// {@macro flutter_forest} FlutterForest() : super( - priority: RenderPriority.flutterForest, children: [ Signpost( children: [ diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index a3607a5d..402164c2 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -52,8 +52,8 @@ class PinballGame extends Forge2DGame final launcher = Launcher(); await add(launcher); + await add(FlutterForest()..priority = 1); await add(Multipliers()); - await add(FlutterForest()); await addFromBlueprint(SparkyScorch()); await addFromBlueprint(AndroidAcres()); await addFromBlueprint(DinoDesert());