From 9e67a955b0828d67730c9fc77aedcdc4e219bbb3 Mon Sep 17 00:00:00 2001 From: Rafael Date: Thu, 2 Jan 2025 01:56:13 -0300 Subject: [PATCH] improvements --- lib/base/bonfire_game.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/base/bonfire_game.dart b/lib/base/bonfire_game.dart index faf15f70..e1190c07 100644 --- a/lib/base/bonfire_game.dart +++ b/lib/base/bonfire_game.dart @@ -192,8 +192,8 @@ class BonfireGame extends BaseGame implements BonfireGameInterface { super.update(dt); _intervalUpdateOder.update(dt); _intervalOprimizeTree.update(dt); - // ignore: use_if_null_to_convert_nulls_to_bools - if (!_gameMounted && camera.world?.children.isNotEmpty == true) { + final containsChildren = camera.world?.children.isNotEmpty == true; + if (!_gameMounted && containsChildren) { _gameMounted = true; Future.delayed(Duration.zero, _notifyGameMounted); }