removed error (only check game state if it is initialized)
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user