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,8 +172,12 @@ 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user