Improved Side json parsing to be more flexible

This commit is contained in:
Christian 'ketura' McCarty
2022-08-15 15:41:22 -05:00
parent 47bea6d163
commit c427d35030

View File

@@ -9,6 +9,6 @@ import com.gempukku.lotro.common.Side;
public class SideFieldProcessor implements FieldProcessor {
@Override
public void processField(String key, Object value, BuiltLotroCardBlueprint blueprint, CardGenerationEnvironment environment) throws InvalidCardDefinitionException {
blueprint.setSide(FieldUtils.getEnum(Side.class, value, key));
blueprint.setSide(Side.Parse(FieldUtils.getString(value, key)));
}
}