Skip to content

Commit

Permalink
Fixed invalid signature
Browse files Browse the repository at this point in the history
  • Loading branch information
voroscsoki committed May 22, 2024
1 parent 3b6075a commit f582e5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/Controll/ViewGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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();
Expand Down

0 comments on commit f582e5e

Please sign in to comment.