From 793630ed96000ca04557dd21fa943ffbe421be59 Mon Sep 17 00:00:00 2001 From: aleandro Date: Sun, 14 Jun 2026 19:34:39 +0200 Subject: [PATCH] Fix: regress bug --- .../it/polimi/ingsw/gc14/View/GUI/MainFXMLController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/it/polimi/ingsw/gc14/View/GUI/MainFXMLController.java b/src/main/java/it/polimi/ingsw/gc14/View/GUI/MainFXMLController.java index 5d4e833..9e650e5 100644 --- a/src/main/java/it/polimi/ingsw/gc14/View/GUI/MainFXMLController.java +++ b/src/main/java/it/polimi/ingsw/gc14/View/GUI/MainFXMLController.java @@ -145,7 +145,8 @@ public class MainFXMLController { /** Incrementally re-renders only the parts of the scene affected by the last network event. */ public void render() { if(foodLabels.isEmpty() || controller.getMiniModel().lastEvent == null - || controller.getMiniModel().lastEvent.getEventType().equals(EventType.TOTEM_CHOICE)) + || controller.getMiniModel().lastEvent.getEventType().equals(EventType.TOTEM_CHOICE) + || controller.getMiniModel().lastEvent.getEventType().equals(EventType.RECONNECT_PLAYER)) buildSidePanel(); if(isError) { @@ -153,7 +154,7 @@ public class MainFXMLController { isError=false; return; } - if(controller.getMiniModel().lastEvent==null ||controller.getMiniModel().lastEvent.getEventType().equals(EventType.TOTEM_CHOICE) || controller.getMiniModel().lastEvent.getEventType().equals(EventType.NEXT_ROUND)) { + if(controller.getMiniModel().lastEvent==null ||controller.getMiniModel().lastEvent.getEventType().equals(EventType.TOTEM_CHOICE) || controller.getMiniModel().lastEvent.getEventType().equals(EventType.NEXT_ROUND) || controller.getMiniModel().lastEvent.getEventType().equals(EventType.RECONNECT_PLAYER)) { renderMyHand(); renderUpper(); renderBoard();