CardEdition: fix BorderColor

This commit is contained in:
Hans Mackowiak
2021-02-26 14:10:18 +01:00
parent 09aed2fed4
commit d6badf3b1e

View File

@@ -461,7 +461,7 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
res.boosterTpl = boosterDesc == null ? null : new SealedProduct.Template(res.code, SealedProduct.Template.Reader.parseSlots(boosterDesc)); res.boosterTpl = boosterDesc == null ? null : new SealedProduct.Template(res.code, SealedProduct.Template.Reader.parseSlots(boosterDesc));
res.alias = section.get("alias"); res.alias = section.get("alias");
res.borderColor = BorderColor.valueOf(section.get("border", "Black").toUpperCase()); res.borderColor = BorderColor.valueOf(section.get("border", "Black").toUpperCase(Locale.ENGLISH));
String type = section.get("type"); String type = section.get("type");
Type enumType = Type.UNKNOWN; Type enumType = Type.UNKNOWN;
if (null != type && !type.isEmpty()) { if (null != type && !type.isEmpty()) {