From 23439e44c1abd7fdee431ca2efa49bfd694887a8 Mon Sep 17 00:00:00 2001 From: LatvianModder Date: Wed, 24 Jul 2024 12:38:49 +0300 Subject: [PATCH] Fixed block loot tables --- .../java/dev/latvian/mods/kubejs/block/BlockBuilder.java | 2 +- src/main/java/dev/latvian/mods/kubejs/item/ItemBuilder.java | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/dev/latvian/mods/kubejs/block/BlockBuilder.java b/src/main/java/dev/latvian/mods/kubejs/block/BlockBuilder.java index e314e99e3..e473a04c0 100644 --- a/src/main/java/dev/latvian/mods/kubejs/block/BlockBuilder.java +++ b/src/main/java/dev/latvian/mods/kubejs/block/BlockBuilder.java @@ -184,7 +184,7 @@ public void generateDataJsons(KubeDataGenerator generator) { var table = generateLootTable(); if (table != null) { - generator.json(newID("loot_tables/blocks/", ""), LootTable.CODEC.encodeStart(JsonOps.INSTANCE, new Holder.Direct<>(table)).getOrThrow()); + generator.json(newID("loot_table/blocks/", ""), LootTable.CODEC.encodeStart(JsonOps.INSTANCE, new Holder.Direct<>(table)).getOrThrow()); } } diff --git a/src/main/java/dev/latvian/mods/kubejs/item/ItemBuilder.java b/src/main/java/dev/latvian/mods/kubejs/item/ItemBuilder.java index e55a73fcc..48bee5435 100644 --- a/src/main/java/dev/latvian/mods/kubejs/item/ItemBuilder.java +++ b/src/main/java/dev/latvian/mods/kubejs/item/ItemBuilder.java @@ -5,7 +5,6 @@ import dev.latvian.mods.kubejs.bindings.ItemWrapper; import dev.latvian.mods.kubejs.color.Color; import dev.latvian.mods.kubejs.generator.KubeAssetGenerator; -import dev.latvian.mods.kubejs.generator.KubeDataGenerator; import dev.latvian.mods.kubejs.registry.BuilderBase; import dev.latvian.mods.kubejs.script.ConsoleJS; import dev.latvian.mods.kubejs.typings.Info; @@ -118,10 +117,6 @@ public Item transformObject(Item obj) { return obj; } - @Override - public void generateDataJsons(KubeDataGenerator generator) { - } - @Override public void generateAssetJsons(KubeAssetGenerator generator) { if (modelJson != null) {