mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Xmage 1.4.16v2
This commit is contained in:
parent
4ec7d626fa
commit
f92e827d3b
2 changed files with 17 additions and 9 deletions
|
@ -676,8 +676,10 @@ public class SessionImpl implements Session {
|
|||
try {
|
||||
if (isConnected()) {
|
||||
// Workaround to fix Can't join table problem
|
||||
deckList.setCardLayout(null);
|
||||
deckList.setSideboardLayout(null);
|
||||
if (deckList != null) {
|
||||
deckList.setCardLayout(null);
|
||||
deckList.setSideboardLayout(null);
|
||||
}
|
||||
return server.joinTable(sessionId, roomId, tableId, playerName, playerType, skill, deckList, password);
|
||||
}
|
||||
} catch (InvalidDeckException iex) {
|
||||
|
@ -697,8 +699,10 @@ public class SessionImpl implements Session {
|
|||
try {
|
||||
if (isConnected()) {
|
||||
// Workaround to fix Can't join table problem
|
||||
deckList.setCardLayout(null);
|
||||
deckList.setSideboardLayout(null);
|
||||
if (deckList != null) {
|
||||
deckList.setCardLayout(null);
|
||||
deckList.setSideboardLayout(null);
|
||||
}
|
||||
return server.joinTournamentTable(sessionId, roomId, tableId, playerName, playerType, skill, deckList, password);
|
||||
}
|
||||
} catch (GameException ex) {
|
||||
|
@ -1182,8 +1186,10 @@ public class SessionImpl implements Session {
|
|||
try {
|
||||
if (isConnected()) {
|
||||
// Workaround to fix Can't join table problem
|
||||
deck.setCardLayout(null);
|
||||
deck.setSideboardLayout(null);
|
||||
if (deck != null) {
|
||||
deck.setCardLayout(null);
|
||||
deck.setSideboardLayout(null);
|
||||
}
|
||||
return server.submitDeck(sessionId, tableId, deck);
|
||||
}
|
||||
} catch (GameException ex) {
|
||||
|
@ -1200,8 +1206,10 @@ public class SessionImpl implements Session {
|
|||
public boolean updateDeck(UUID tableId, DeckCardLists deck) {
|
||||
try {
|
||||
if (isConnected()) {
|
||||
deck.setCardLayout(null);
|
||||
deck.setSideboardLayout(null);
|
||||
if (deck != null) {
|
||||
deck.setCardLayout(null);
|
||||
deck.setSideboardLayout(null);
|
||||
}
|
||||
server.updateDeck(sessionId, tableId, deck);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ public class MageVersion implements Serializable, Comparable<MageVersion> {
|
|||
public final static int MAGE_VERSION_MAJOR = 1;
|
||||
public final static int MAGE_VERSION_MINOR = 4;
|
||||
public final static int MAGE_VERSION_PATCH = 16;
|
||||
public final static String MAGE_VERSION_MINOR_PATCH = "v1";
|
||||
public final static String MAGE_VERSION_MINOR_PATCH = "v2";
|
||||
public final static String MAGE_VERSION_INFO = "";
|
||||
|
||||
private final int major;
|
||||
|
|
Loading…
Reference in a new issue