mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
fix infoText of tournament causing NPE (#11290)
This commit is contained in:
parent
d7afa37893
commit
b8ba2da23e
1 changed files with 4 additions and 4 deletions
|
|
@ -174,11 +174,11 @@ public class TableView implements Serializable {
|
|||
if (tourneyMatchOptions.getFreeMulligans() > 0) {
|
||||
infoText.append(" FM: ").append(tourneyMatchOptions.getFreeMulligans());
|
||||
}
|
||||
if (table.getMatch().getOptions().isCustomStartLifeEnabled()) {
|
||||
infoText.append(" StartLife: ").append(table.getMatch().getOptions().getCustomStartLife());
|
||||
if (tourneyMatchOptions.isCustomStartLifeEnabled()) {
|
||||
infoText.append(" StartLife: ").append(tourneyMatchOptions.getCustomStartLife());
|
||||
}
|
||||
if (table.getMatch().getOptions().isCustomStartHandSizeEnabled()) {
|
||||
infoText.append(" StartHandSize: ").append(table.getMatch().getOptions().getCustomStartHandSize());
|
||||
if (tourneyMatchOptions.isCustomStartHandSizeEnabled()) {
|
||||
infoText.append(" StartHandSize: ").append(tourneyMatchOptions.getCustomStartHandSize());
|
||||
}
|
||||
if (table.getTournament().getTournamentType().isLimited()) {
|
||||
infoText.append(" Constr.: ").append(table.getTournament().getOptions().getLimitedOptions().getConstructionTime() / 60).append(" Min.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue