From f582e5e926ef4ebd1bc521bfd362cbbbe2b9d181 Mon Sep 17 00:00:00 2001 From: voroscsoki Date: Wed, 22 May 2024 19:16:23 +0200 Subject: [PATCH] Fixed invalid signature --- src/main/java/Controll/ViewGame.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/Controll/ViewGame.java b/src/main/java/Controll/ViewGame.java index 9f7c831..ae9fb40 100644 --- a/src/main/java/Controll/ViewGame.java +++ b/src/main/java/Controll/ViewGame.java @@ -321,7 +321,7 @@ public void actionPerformed(ActionEvent e) { } if(e.getSource() == putDownButton){ cmd[1] = Controller.getActivePlayerName(); - if(Controller.GetActivePlayer().getStandingField() instanceof Pipe) Controller.placepump(cmd); + if(Controller.getActivePlayer().getStandingField() instanceof Pipe) Controller.placepump(cmd); else Controller.connect(cmd); successful = true; } @@ -339,13 +339,13 @@ public static void changeText(String[] cmd){ boolean b = Controller.changeActivePlayer(); activePlayer.setText("Active Player: " + Controller.getActivePlayerName()); if (b) { - Controller.endturn(cmd); + Controller.endturn(); mecPoints.setText("Mechanic: " + Controller.waterCounter.getMechanic()); sabPoints.setText("Saboteur: " + Controller.waterCounter.getSaboteur()); ++round; if(round == maxRounds){ - Controller.setend(cmd); - Controller.endturn(cmd); + Controller.setend(); + Controller.endturn(); mecPoints.setText("Mechanic: " + Controller.waterCounter.getMechanic()); sabPoints.setText("Saboteur: " + Controller.waterCounter.getSaboteur()); vg.THE_END();