mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 11:02:00 -08:00
add method Game.isActivePlayer(UUID playerId)
This commit is contained in:
parent
2b78716a1b
commit
ca1ebeb55e
16 changed files with 33 additions and 31 deletions
|
|
@ -40,7 +40,7 @@ public enum TournamentFactory {
|
|||
Map<String,Integer> setInfo = new LinkedHashMap<>();
|
||||
for (String setCode: options.getLimitedOptions().getSetCodes()) {
|
||||
tournament.getSets().add(Sets.findSet(setCode));
|
||||
int count = setInfo.containsKey(setCode) ? setInfo.get(setCode) : 0;
|
||||
int count = setInfo.getOrDefault(setCode, 0);
|
||||
setInfo.put(setCode, count + 1);
|
||||
}
|
||||
tournament.getOptions().getLimitedOptions().setNumberBoosters(tournament.getTournamentType().getNumBoosters());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue