Fix: updateTaskbar in CasinoGameController

Refs #118
This commit is contained in:
Julian Kropff
2026-04-19 18:51:25 +02:00
parent d23a00e148
commit 03daf9c3b8
@@ -633,12 +633,13 @@ public class CasinoGameController {
*/
private void updateTaskbar(GameState s) {
TaskbarController controller = resolveTaskbarController();
if (controller != null) {
if (gameService != null && myPlayerId != null) {
controller.setGameService(gameService, myPlayerId);
}
controller.update(s, myPlayerId);
if (controller == null || myPlayerId == null) {
return;
}
if (gameService != null) {
controller.setGameService(gameService, myPlayerId);
}
controller.update(s, myPlayerId);
}
/**