From 6d561e2d162ba6b43d3f12df0643b83ec72148df Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Wed, 16 Mar 2016 18:51:55 +0100 Subject: Sorted out reading and writing cardbases in the new format, now need to convert existing files --- src/eu/equalparts/cardbase/utils/MTGUniverse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/eu/equalparts/cardbase/utils') diff --git a/src/eu/equalparts/cardbase/utils/MTGUniverse.java b/src/eu/equalparts/cardbase/utils/MTGUniverse.java index 2e33eff..6acb092 100644 --- a/src/eu/equalparts/cardbase/utils/MTGUniverse.java +++ b/src/eu/equalparts/cardbase/utils/MTGUniverse.java @@ -98,7 +98,7 @@ public final class MTGUniverse { } // not cached; fetch and cache else { - requestedSet = parseFullSet(JSON.mapper.readValue(new URL(BASE_DATA_URL + validCode + ".json"), JsonNode.class)); + requestedSet = parseFullSet(JSON.mapper.readTree(new URL(BASE_DATA_URL + validCode + ".json"))); cardSetCache.put(validCode, requestedSet); } } -- cgit v1.2.3