Fix getSubItems

This commit is contained in:
Vincent Lee committed 2017-06-25 09:26:34 -05:00
1 parent c58ae21173
commit 5332cdfad2
27 files changed
+131 -106

No files matched your search

@@ -109,12 +109,13 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem {
}
@Override
@SideOnly(Side.CLIENT)
public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> list) {
for(String s : BotaniaAPI.brewMap.keySet()) {
ItemStack stack = new ItemStack(this);
setBrew(stack, s);
list.add(stack);
if(isInCreativeTab(tab)) {
for(String s : BotaniaAPI.brewMap.keySet()) {
ItemStack stack = new ItemStack(this);
setBrew(stack, s);
list.add(stack);
}
}
}