mirror of
https://github.com/GeyserMC/Geyser.git
synced 2026-01-06 15:41:50 +00:00
Handle new creative_items.json format
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user