diff --git a/src/main/java/train/common/core/CreativeTabTraincraft.java b/src/main/java/train/common/core/CreativeTabTraincraft.java index bb30594b6..a554ceaa7 100644 --- a/src/main/java/train/common/core/CreativeTabTraincraft.java +++ b/src/main/java/train/common/core/CreativeTabTraincraft.java @@ -13,7 +13,6 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.StatCollector; -import train.common.library.ItemIDs; import train.common.library.TraincraftRegistry; import java.util.List; @@ -27,6 +26,11 @@ public CreativeTabTraincraft(String name, String MODID, String textureName) { tabItem= TraincraftRegistry.RegisterItem(new Item(),MODID,textureName,null); } + public CreativeTabTraincraft(String name, Item itm) { + super(CreativeTabs.getNextID(), name); + tabItem= itm; + } + @Override public ItemStack getIconItemStack() { return new ItemStack(tabItem);