removed error (only check game state if it is initialized)

This commit is contained in:
2025-11-28 17:07:14 +01:00
parent c4d6539db7
commit b294eb49c8

View File

@@ -21,6 +21,7 @@ public class UI {
graphics2d.setFont(arial_40);
graphics2d.setColor(Color.white);
if(panel.gameState == null) return;
switch (panel.gameState) {
case GameState.PLAY: