mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Finally block blowing up when no exception is thrown.
This commit is contained in:
@@ -172,9 +172,13 @@ public class SimulateMatch {
|
||||
} catch (Exception | StackOverflowError e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
g1.setGameOver(GameEndReason.Draw);
|
||||
if (sw.isStarted()) {
|
||||
sw.stop();
|
||||
}
|
||||
if (!g1.isGameOver()) {
|
||||
g1.setGameOver(GameEndReason.Draw);
|
||||
}
|
||||
}
|
||||
|
||||
List<GameLogEntry> log;
|
||||
if (outputGamelog) {
|
||||
|
||||
Reference in New Issue
Block a user