Skip to content

Commit

Permalink
Fix block item translation keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Oct 25, 2024
1 parent 31c28a6 commit b70505e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/src/main/java/juuxel/adorn/item/AdornItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public final class AdornItems {
AdornBlocks.STONE_TORCH_GROUND.get(),
AdornBlocks.STONE_TORCH_WALL.get(),
Direction.DOWN,
new Item.Settings().registryKey(key)
new Item.Settings().registryKey(key).useBlockPrefixedTranslationKey()
));

public static final Registered<Item> GUIDE_BOOK = register("guide_book",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ public <T extends Block> Registered<T> registerBlock(
BlockSettingsProvider settings
) {
var registered = registerBlockWithoutItem(name, block, settings);
items.register(name, key -> itemProvider.apply(registered.get(), itemSettings.createItemSettings().registryKey(key)));
items.register(name, key -> itemProvider.apply(
registered.get(),
itemSettings.createItemSettings()
.registryKey(key)
.useBlockPrefixedTranslationKey()
));
return registered;
}

Expand Down

0 comments on commit b70505e

Please sign in to comment.