Improved Side json parsing to be more flexible
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user