forked from GeyserMC/Geyser
Handle new creative_items.json format
This commit is contained in:
parent
b222b05348
commit
9a9695ead7
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ public class Toolbox {
|
|||
List<LinkedHashMap<String, Object>> creativeItemEntries = new ArrayList<>();
|
||||
|
||||
try {
|
||||
creativeItemEntries = creativeItemMapper.readValue(creativeItemStream, ArrayList.class);
|
||||
creativeItemEntries = (ArrayList<LinkedHashMap<String, Object>>) creativeItemMapper.readValue(creativeItemStream, HashMap.class).get("items");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue