mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fixed a bug that caused the game to crash when generating boosters with no specified code (fixes full cardpool draft).
.
This commit is contained in:
@@ -342,6 +342,10 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
|
||||
*/
|
||||
@Override
|
||||
public CardEdition get(final String code) {
|
||||
if (code == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
CardEdition baseResult = super.get(code);
|
||||
return baseResult == null ? aliasToEdition.get(code) : baseResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user