mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +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,9 +172,13 @@ public class SimulateMatch {
|
|||||||
} catch (Exception | StackOverflowError e) {
|
} catch (Exception | StackOverflowError e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} finally {
|
} finally {
|
||||||
g1.setGameOver(GameEndReason.Draw);
|
if (sw.isStarted()) {
|
||||||
sw.stop();
|
sw.stop();
|
||||||
}
|
}
|
||||||
|
if (!g1.isGameOver()) {
|
||||||
|
g1.setGameOver(GameEndReason.Draw);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
List<GameLogEntry> log;
|
List<GameLogEntry> log;
|
||||||
if (outputGamelog) {
|
if (outputGamelog) {
|
||||||
|
|||||||
Reference in New Issue
Block a user