mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Tweak how mobile user sets that they're ready
This commit is contained in:
@@ -154,7 +154,7 @@ public abstract class GameLobby {
|
||||
}
|
||||
|
||||
data.slots.add(slot);
|
||||
if (StringUtils.isEmpty(slot.getName())) {
|
||||
if (StringUtils.isEmpty(slot.getName()) && slot.getType() != LobbySlotType.OPEN) {
|
||||
slot.setName(randomName());
|
||||
}
|
||||
if (data.slots.size() == 1) {
|
||||
|
||||
@@ -16,10 +16,10 @@ public final class OfflineLobby extends GameLobby {
|
||||
final String humanName = localName();
|
||||
final int[] avatarIndices = localAvatarIndices();
|
||||
|
||||
final LobbySlot slot0 = new LobbySlot(LobbySlotType.LOCAL, humanName, avatarIndices[0], 0, true, true, Collections.<AIOption>emptySet());
|
||||
final LobbySlot slot0 = new LobbySlot(LobbySlotType.LOCAL, humanName, avatarIndices[0], 0, true, false, Collections.<AIOption>emptySet());
|
||||
addSlot(slot0);
|
||||
|
||||
final LobbySlot slot1 = new LobbySlot(LobbySlotType.OPEN, "Open", avatarIndices[1], 1, false, false, Collections.<AIOption>emptySet());
|
||||
final LobbySlot slot1 = new LobbySlot(LobbySlotType.OPEN, null, -1, -1, false, false, Collections.<AIOption>emptySet());
|
||||
addSlot(slot1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user