File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public class BlockStateless extends Block implements Syncable {
1313 components. add(new StaticRenderer (). onRender(new BlockRenderPipeline (this ). withTexture(NovaBlock . steelTexture). build()));
1414 components. add(new Collider ());
1515 components. add(new ItemRenderer (this )); // TODO: Deprecated
16- components. add(new Category ( " buildingBlocks " ) );
16+ components. add(Category . BUILDING_BLOCKS );
1717
1818 events. on(RightClickEvent . class). bind(this :: onRightClick);
1919 }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ The code above registers an item class called `ItemScrewdriver`. `ItemScrewdrive
1010public class ItemScrewdriver extends Item {
1111
1212 public ItemScrewdriver () {
13- components. add(new Category ( " tools " ) );
13+ components. add(Category . TOOLS );
1414 components. add(new StaticRenderer (). onRender(new ItemRenderPipeline (this ). withTexture(NovaItem . screwTexture). build()));
1515
1616 events. on(UseEvent . class). bind(event - > event. action = true );
You can’t perform that action at this time.
0 commit comments