Skip to content

Commit

Permalink
fix: withItem not working
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeBather committed Nov 2, 2024
1 parent ebb9c8f commit 1c3ac52
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ public <R extends Item> BlockReg<T> withItem(ItemReg.ItemBuilder<R> builder, Res
public <R extends Item> BlockReg<T> withItem(SelfReferenceItemBuilder<R,T> builder, ResourceLocation itemModelLocation) {
itemReg = new ItemReg<R>(registrationKey, itemModelLocation);
itemReg.itemType((p)->builder.build(this.registryObject.get(),p));
registerItem = true;
return this;
}

Expand Down

0 comments on commit 1c3ac52

Please sign in to comment.