Skip to content

Commit

Permalink
Fixed block loot tables
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed Jul 24, 2024
1 parent 383a24e commit 23439e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down
5 changes: 0 additions & 5 deletions src/main/java/dev/latvian/mods/kubejs/item/ItemBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 23439e4

Please sign in to comment.