- 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:
Agetian
2014-02-08 18:24:04 +00:00
parent 96ff2dc09e
commit d7224d7515

View File

@@ -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;
}