Skip to content

Commit

Permalink
Set loot table id of processed tables
Browse files Browse the repository at this point in the history
Fixes #57
  • Loading branch information
Su5eD committed Sep 23, 2023
1 parent 4a4df44 commit 3a48b2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ private void applyLootTableEvents(ResourceManager resourceManager, LootManager l
LootTableEvents.MODIFY.invoker().modifyLootTable(resourceManager, lootManager, dataKey.id(), builder, source);

// Turn the builder back into a loot table and store it in the new table.
newTables.put(dataKey, builder.build());
LootTable newTable = builder.build();
newTable.setLootTableId(table.getLootTableId());
newTables.put(dataKey, newTable);
});

this.keyToValue = newTables.build();
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ fabric-client-tags-api-v1-version=1.1.1
loom.platform=forge
forge_version=1.20.1-47.1.3
pack_format=15
forgified_version=1.9.15
forgified_version=1.9.16
forge_fabric_loader_version=2.2.1+0.14.21+1.20.1

0 comments on commit 3a48b2e

Please sign in to comment.