From 32056e090b4cd15a9d3cb53750e44fb82b2d4696 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 14 Dec 2015 18:35:40 +0100 Subject: [PATCH] Made Seeds not show in the misc tab but actually where they should im a failure --- .../java/ellpeck/actuallyadditions/items/ItemSeed.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemSeed.java b/src/main/java/ellpeck/actuallyadditions/items/ItemSeed.java index 137cf2fc5..659a91d8c 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemSeed.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemSeed.java @@ -14,6 +14,7 @@ import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.blocks.base.BlockPlant; +import ellpeck.actuallyadditions.creative.CreativeTab; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.client.renderer.texture.IIconRegister; @@ -46,6 +47,13 @@ public class ItemSeed extends ItemSeeds{ private void register(){ this.setUnlocalizedName(ModUtil.MOD_ID_LOWER+"."+this.getBaseName()); GameRegistry.registerItem(this, this.getBaseName()); + if(this.shouldAddCreative()){ + this.setCreativeTab(CreativeTab.instance); + } + } + + public boolean shouldAddCreative(){ + return true; } protected String getBaseName(){