diff --git a/lib/game/components/android_acres/behaviors/ramp_bonus_behavior.dart b/lib/game/components/android_acres/behaviors/ramp_bonus_behavior.dart index 2acb3c76..8089f3fd 100644 --- a/lib/game/components/android_acres/behaviors/ramp_bonus_behavior.dart +++ b/lib/game/components/android_acres/behaviors/ramp_bonus_behavior.dart @@ -36,11 +36,9 @@ class RampBonusBehavior extends Component sensor.bloc.stream.listen((state) { switch (state.type) { case RampSensorType.door: - _handleOnDoor(state.ball!); - break; + return _handleOnDoor(state.ball!); case RampSensorType.inside: - _handleOnInside(state.ball!); - break; + return _handleOnInside(state.ball!); } }); }