mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* Tiny Leaders - Preserved deck name for Leader name.
This commit is contained in:
parent
4d0dbb2327
commit
15d95f0fee
2 changed files with 6 additions and 0 deletions
|
@ -398,6 +398,8 @@ public abstract class MatchImpl implements Match {
|
|||
public void submitDeck(UUID playerId, Deck deck) {
|
||||
MatchPlayer player = getPlayer(playerId);
|
||||
if (player != null) {
|
||||
// make sure the deck name (needed for Tiny Leaders) won't get lost by sideboarding
|
||||
deck.setName(player.getDeck().getName());
|
||||
player.submitDeck(deck);
|
||||
}
|
||||
synchronized (this) {
|
||||
|
|
|
@ -87,6 +87,10 @@ public class MatchPlayer {
|
|||
}
|
||||
|
||||
public void updateDeck(Deck deck) {
|
||||
if (this.deck != null) {
|
||||
// preserver deck name, important for Tiny Leaders format
|
||||
deck.setName(this.getDeck().getName());
|
||||
}
|
||||
this.deck = deck;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue