Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jomosoto opened this issue Apr 14, 2023 · 0 comments
Open

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

Jomosoto opened this issue Apr 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Jomosoto
Copy link
Contributor

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

@Jomosoto Jomosoto added the bug Something isn't working label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant