Skip to content

Flans workbenches can't be found in the search tab #1458

@Jomosoto

Description

@Jomosoto

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));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions