mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
only network host can adjust number of players
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -193,6 +193,8 @@ public abstract class LobbyScreen extends LaunchScreen implements ILobbyView {
|
||||
btnStart.setEnabled(hasControl);
|
||||
lblVariants.setEnabled(hasControl);
|
||||
cbVariants.setEnabled(hasControl);
|
||||
lblPlayers.setEnabled(hasControl);
|
||||
cbPlayerCount.setEnabled(hasControl);
|
||||
while (lobby.getNumberOfSlots() < getNumPlayers()){
|
||||
lobby.addSlot();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user