Skip to content

Commit

Permalink
Fix Block Name Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelmehdiyev committed Dec 7, 2024
1 parent d11fb9e commit fe8ff87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/net/rafael/usefulcactus/block/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ private static Block registerBlock(String name, Block block) {

private static void registerBlockItem(String name, Block block) {
Registry.register(Registries.ITEM, Identifier.of(RafaelsUsefulCactus.MOD_ID, name),
new BlockItem(block, new Item.Settings().registryKey(RegistryKey.of(RegistryKeys.ITEM, Identifier.of(RafaelsUsefulCactus.MOD_ID, name)))){

});
new BlockItem(block, new Item.Settings()
.registryKey(RegistryKey.of(RegistryKeys.ITEM, Identifier.of(RafaelsUsefulCactus.MOD_ID, name))).useBlockPrefixedTranslationKey()));
}

public static void registerModBlocks() {
Expand Down

0 comments on commit fe8ff87

Please sign in to comment.