Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazkii committed Jan 30, 2024
1 parent b9525bd commit 3443f95
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ private static void acceptItem(BuildCreativeModeTabContentsEvent event, ItemLike
}

private static void addToEntries(ItemStack target, MutableHashedLinkedMap<ItemStack, CreativeModeTab.TabVisibility> entries, ItemLike item, boolean behind) {
if(!isItemEnabled(item))
return;

List<ItemStack> stacksToAdd = Arrays.asList(new ItemStack(item));
if(item instanceof AppendsUniquely au)
stacksToAdd = au.appendItemsToCreativeTab();
Expand Down

0 comments on commit 3443f95

Please sign in to comment.