mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28: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
|
@Override
|
||||||
public CardEdition get(final String code) {
|
public CardEdition get(final String code) {
|
||||||
|
if (code == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
CardEdition baseResult = super.get(code);
|
CardEdition baseResult = super.get(code);
|
||||||
return baseResult == null ? aliasToEdition.get(code) : baseResult;
|
return baseResult == null ? aliasToEdition.get(code) : baseResult;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user