Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Update Restaurant.java
Browse files Browse the repository at this point in the history
  • Loading branch information
dulldesk committed Jun 21, 2020
1 parent 9ae1687 commit 545d07e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Restaurant.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public Restaurant(boolean training) {
openedStations = new HashMap<String, Boolean>();
openedStations.put("COVID Counter", true);
openedStations.put("Front Counter", true);
openedStations.put("Don't worry, this is my station! Go back to work!", true);


initialLiveTask = true;
Expand Down Expand Up @@ -446,7 +447,7 @@ public void paintComponent(Graphics g) {
}
} else {
for (Station stn : stations) {
if (stn.getName().equalsIgnoreCase("exit") && !User.hasTrained) {
if (inTraining && stn.getName().equalsIgnoreCase("exit") && !User.hasTrained) {
// do not allow exiting
continue;
}
Expand Down

0 comments on commit 545d07e

Please sign in to comment.