mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
gui: fixed possible game error with player timer on client side
This commit is contained in:
parent
30269243bb
commit
01dd8c33ba
3 changed files with 21 additions and 11 deletions
|
|
@ -267,6 +267,7 @@ public class GameController implements GameCallback {
|
|||
long delayMs = 250L; // run each 250 ms
|
||||
|
||||
Action executeOnNoTimeLeft = () -> {
|
||||
// TODO: buggy, must run in game thread, not in timer thread
|
||||
game.timerTimeout(initPlayerId);
|
||||
logger.debug("Player has no time left to end the match: " + initPlayerId + ". Conceding.");
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue