mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed apples appearing where they shouldn't
This commit is contained in:
parent
d3ddd47ed5
commit
70871975c0
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue