Changes
From Forge Community Wiki
3 bytes added
, 09:28, 16 July 2021
| Line 26: |
Line 26: |
| | Path path = outputFolder.resolve("data/" + key.getNamespace() + "/loot_tables/" + key.getPath() + ".json"); | | Path path = outputFolder.resolve("data/" + key.getNamespace() + "/loot_tables/" + key.getPath() + ".json"); |
| | try { | | try { |
| − | IDataProvider.save(GSON, cache, LootTableManager.toJson(lootTable), path); | + | IDataProvider.save(GSON, cache, LootTableManager.serialize(lootTable), path); |
| | } catch (IOException e) { | | } catch (IOException e) { |
| | LOGGER.error("Couldn't write loot table {}", path, (Object) e); | | LOGGER.error("Couldn't write loot table {}", path, (Object) e); |