mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Fix non-fatal error when starting a match.
This commit is contained in:
@@ -36,6 +36,7 @@ public abstract class AbstractGuiGame implements IGuiGame, IMayViewCards {
|
|||||||
|
|
||||||
protected final void setLocalPlayers(final FCollectionView<PlayerView> players) {
|
protected final void setLocalPlayers(final FCollectionView<PlayerView> players) {
|
||||||
this.localPlayers = players;
|
this.localPlayers = players;
|
||||||
|
this.currentPlayer = Iterables.getFirst(players, null);
|
||||||
}
|
}
|
||||||
public final boolean hasLocalPlayers() {
|
public final boolean hasLocalPlayers() {
|
||||||
return localPlayers != null && !localPlayers.isEmpty();
|
return localPlayers != null && !localPlayers.isEmpty();
|
||||||
|
|||||||
Reference in New Issue
Block a user