aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/equalparts/cardbase/utils
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2016-03-16 18:51:55 +0100
committerEduardo Pedroni <e.pedroni91@gmail.com>2016-03-16 18:51:55 +0100
commit6d561e2d162ba6b43d3f12df0643b83ec72148df (patch)
treea559bf353151102f786c7916d6675baa1faaaf0c /src/eu/equalparts/cardbase/utils
parentf70899a487cf0cdc58b8f4e0efea98e8404766c8 (diff)
Sorted out reading and writing cardbases in the new format, now need to convert existing files
Diffstat (limited to 'src/eu/equalparts/cardbase/utils')
-rw-r--r--src/eu/equalparts/cardbase/utils/MTGUniverse.java2
1 files changed, 1 insertions, 1 deletions
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);
}
}