Flan's Mod: Legacy

Flan's Mod: Legacy

2M Downloads

Flans workbenches can't be found in the search tab

Jomosoto opened this issue ยท 0 comments

commented

Describe the bug

The vehicle crafting table, the gun modification table and the parts crafting table are present in the corresponding flans mod tab, but not in the "search" creative tab.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to the search tab in the inventory in creative
  2. Search for one of the three items
  3. See non of the items in the results

Expected behaviour

The items also should be present in both the corresponding flans mod tab and the search tab.

Versions (please complete the following information)

  • Forge: 14.23.5.2838
  • Flan's Mod: 1.12.2 branch (at 71ba7ed)

Additional context

Probably related to the way the items are added to the creative tabs:

@Override
public void getSubBlocks(CreativeTabs tab, NonNullList<ItemStack> items)
{
if(tab == FlansMod.tabFlanDriveables)
items.add(new ItemStack(this, 1, 0));
else if(tab == FlansMod.tabFlanGuns)
items.add(new ItemStack(this, 1, 1));
else if(tab == FlansMod.tabFlanParts)
items.add(new ItemStack(this, 1, 2));
}