Skip to content

Commit

Permalink
fix the continue to sunday
Browse files Browse the repository at this point in the history
  • Loading branch information
peretr committed May 14, 2026
1 parent 3f9c47f commit 5a40c1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ public void updateGameState() {
gameController.setGameState(GameState.WORKDAY);
}

public void setDay(Day day){
dayIndex.set(day.ordinal());
public void setDay(int index) {
dayIndex.set(index);
updateGameState();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private void wireWeekendRapport() {
weekendRapportApp.getContinueButton().setOnAction(event -> {
weekendRapportApp.getRoot().setVisible(false);
desktopView.exitLayer(ModalLayer.RAPPORT);
timeAndWeatherController.setDay(Day.SUN);
timeAndWeatherController.setDay(0);
});
}

Expand Down

0 comments on commit 5a40c1a

Please sign in to comment.