Skip to content

Commit 9cd014b

Browse files
authored
Merge branch 'master' into rendering
2 parents 214577d + 1fcd901 commit 9cd014b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: docs/Mod Development/Blocks.md

+1-1
Original file line numberDiff line numberDiff 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
}

Diff for: docs/Mod Development/Items.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The code above registers an item class called `ItemScrewdriver`. `ItemScrewdrive
1010
public 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);

0 commit comments

Comments
 (0)