Skip to content

Commit

Permalink
Update SiegeManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 committed Jul 2, 2024
1 parent b800a27 commit 68eb45c
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ public void run() {
}

for (Siege siege : sieges) {
if (siege.getStage().get() == Siege.Stage.IN_PROGRESS) {
new SiegeProgressTask(siege).runTask(warfare);
}
else if (siege.getStage().get() == Siege.Stage.PREPARATION) {
new SiegePreparationTask(siege).runTask(warfare);
}
else {
// Siege is inactive, do nothing
switch (siege.getStage().get()) {
case IN_PROGRESS:
case SUDDEN_DEATH:
new SiegeProgressTask(siege).runTask(warfare);
break;
case PREPARATION:
new SiegePreparationTask(siege).runTask(warfare);
break;
}
}
}
Expand Down

0 comments on commit 68eb45c

Please sign in to comment.