Fixed apples appearing where they shouldn't

This commit is contained in:
Sollace 2018-09-16 00:40:52 +02:00
parent d3ddd47ed5
commit 70871975c0

View file

@ -121,9 +121,11 @@ public class ItemApple extends ItemFood {
@Override
public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> items) {
for (int i = 0; i < subTypes.length; i++) {
items.add(new ItemStack(UItems.apple, 1, i));
}
if (isInCreativeTab(tab)) {
for (int i = 0; i < subTypes.length; i++) {
items.add(new ItemStack(UItems.apple, 1, i));
}
}
}
@Override