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,10 +121,12 @@ public class ItemApple extends ItemFood {
@Override
public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> items) {
if (isInCreativeTab(tab)) {
for (int i = 0; i < subTypes.length; i++) {
items.add(new ItemStack(UItems.apple, 1, i));
}
}
}
@Override
public EnumRarity getRarity(ItemStack stack) {