Skip to content

Commit

Permalink
Fix subtypes being put into all tabs (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiefArug authored Oct 22, 2023
1 parent 96e8f36 commit 7a7ae01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public BasicItemJS(ItemBuilder p) {

@Override
public void fillItemCategory(CreativeModeTab category, NonNullList<ItemStack> stacks) {
if (kjs$getItemBuilder().subtypes != null) {
if (kjs$getItemBuilder().subtypes != null && category.equals(kjs$getItemBuilder().group)) {
stacks.addAll(kjs$getItemBuilder().subtypes.apply(new ItemStack(this)));
} else {
super.fillItemCategory(category, stacks);
Expand Down

0 comments on commit 7a7ae01

Please sign in to comment.