mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Update AbstractGuiGame.java
This commit is contained in:
@@ -403,8 +403,11 @@ public abstract class AbstractGuiGame implements IGuiGame, IMayViewCards {
|
||||
|
||||
@Override
|
||||
public final void awaitNextInput() {
|
||||
if (awaitNextInputTimer == null && currentPlayer != null) { //Prevent NPE currentPlayer
|
||||
awaitNextInputTimer = new Timer("awaitNextInputTimer Game:" + this.gameView.getId() + " Player:" + this.currentPlayer.getLobbyPlayerName());
|
||||
if (awaitNextInputTimer == null) {
|
||||
String name = "?";
|
||||
if (this.currentPlayer != null)
|
||||
name = this.currentPlayer.getLobbyPlayerName();
|
||||
awaitNextInputTimer = new Timer("awaitNextInputTimer Game:" + this.gameView.getId() + " Player:" + name);
|
||||
}
|
||||
//delay updating prompt to await next input briefly so buttons don't flicker disabled then enabled
|
||||
awaitNextInputTask = new TimerTask() {
|
||||
|
||||
Reference in New Issue
Block a user