Open main menu
Home
Random
Log in
Settings
About Forge Community Wiki
Disclaimers
Forge Community Wiki
Search
Changes
← Older edit
Newer edit →
Datageneration/Loot Tables
(view source)
Revision as of 09:28, 16 July 2021
3 bytes added
,
09:28, 16 July 2021
→Preperation
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);
Ferri Arnus
25
edits