diff --git a/src/main/java/biomesoplenty/common/item/ItemBOPBlock.java b/src/main/java/biomesoplenty/common/item/ItemBOPBlock.java index fbfdd4eb6..36dcd97e9 100644 --- a/src/main/java/biomesoplenty/common/item/ItemBOPBlock.java +++ b/src/main/java/biomesoplenty/common/item/ItemBOPBlock.java @@ -48,16 +48,19 @@ public class ItemBOPBlock extends ItemBlock @SideOnly(Side.CLIENT) public void getSubItems(CreativeTabs tab, NonNullList subItems) { - ImmutableSet presets = BlockStateUtils.getBlockPresets(this.block); - if (presets.isEmpty()) + if (this.func_194125_a(tab)) { - subItems.add(new ItemStack(this.block, 1, 0)); - } - else - { - for (IBlockState state : presets) + ImmutableSet presets = BlockStateUtils.getBlockPresets(this.block); + if (presets.isEmpty()) { - subItems.add(new ItemStack(this.block, 1, this.block.getMetaFromState(state))); + subItems.add(new ItemStack(this.block, 1, 0)); + } + else + { + for (IBlockState state : presets) + { + subItems.add(new ItemStack(this.block, 1, this.block.getMetaFromState(state))); + } } } } diff --git a/src/main/java/biomesoplenty/common/item/ItemGem.java b/src/main/java/biomesoplenty/common/item/ItemGem.java index 10c42a0bd..3d17cbfcd 100644 --- a/src/main/java/biomesoplenty/common/item/ItemGem.java +++ b/src/main/java/biomesoplenty/common/item/ItemGem.java @@ -32,10 +32,13 @@ public class ItemGem extends Item @SideOnly(Side.CLIENT) public void getSubItems(CreativeTabs tab, NonNullList subItems) { - for (BOPGems gemType : BOPGems.values()) + if (this.func_194125_a(tab)) { - subItems.add(new ItemStack(this, 1, gemType.ordinal())); - } + for (BOPGems gemType : BOPGems.values()) + { + subItems.add(new ItemStack(this, 1, gemType.ordinal())); + } + } } // default behavior in Item is to return 0, but the meta value is important here because it determines which gem to use diff --git a/src/main/java/biomesoplenty/common/item/ItemJarFilled.java b/src/main/java/biomesoplenty/common/item/ItemJarFilled.java index f4d9e5ee4..ea568d75b 100644 --- a/src/main/java/biomesoplenty/common/item/ItemJarFilled.java +++ b/src/main/java/biomesoplenty/common/item/ItemJarFilled.java @@ -59,9 +59,12 @@ public class ItemJarFilled extends Item @SideOnly(Side.CLIENT) public void getSubItems(CreativeTabs tab, NonNullList subItems) { - for (JarContents contents : JarContents.values()) + if (this.func_194125_a(tab)) { - subItems.add(new ItemStack(this, 1, contents.ordinal())); + for (JarContents contents : JarContents.values()) + { + subItems.add(new ItemStack(this, 1, contents.ordinal())); + } } }