mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
Merge branch 'fix-headless' into 'master'
Finally block blowing up when no exception is thrown. See merge request core-developers/forge!3453
This commit is contained in:
@@ -172,8 +172,12 @@ public class SimulateMatch {
|
||||
} catch (Exception | StackOverflowError e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
g1.setGameOver(GameEndReason.Draw);
|
||||
sw.stop();
|
||||
if (sw.isStarted()) {
|
||||
sw.stop();
|
||||
}
|
||||
if (!g1.isGameOver()) {
|
||||
g1.setGameOver(GameEndReason.Draw);
|
||||
}
|
||||
}
|
||||
|
||||
List<GameLogEntry> log;
|
||||
|
||||
Reference in New Issue
Block a user