diff --git a/lib/game/components/android_acres/behaviors/android_spaceship_bonus_behavior.dart b/lib/game/components/android_acres/behaviors/android_spaceship_bonus_behavior.dart index 87f19b2d..743c8fa6 100644 --- a/lib/game/components/android_acres/behaviors/android_spaceship_bonus_behavior.dart +++ b/lib/game/components/android_acres/behaviors/android_spaceship_bonus_behavior.dart @@ -9,9 +9,7 @@ class AndroidSpaceshipBonusBehavior extends Component @override void onMount() { super.onMount(); - - final androidSpaceship = - parent.children.whereType().single; + final androidSpaceship = parent.firstChild()!; // TODO(alestiago): Refactor subscription management once the following is // merged: