Made Seeds not show in the misc tab but actually where they should

im a failure
This commit is contained in:
Ellpeck 2015-12-14 18:35:40 +01:00
parent e728acfae6
commit 32056e090b

View file

@ -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(){