remove test book from creative tab, make sure crafting item wont NPE if there is no creative tab

This commit is contained in:
Progwml6 committed 2014-02-14 23:38:07 -05:00
1 parent 4e17485459
commit fb2b112d00
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ public class Manual extends CraftingItem
public Manual()
{
super(name, textureName, "", "mantle", CreativeTabs.tabMisc);
super(name, textureName, "", "mantle", null);
modID = CoreRepo.modId;
}
+4 -1
View File
@@ -23,7 +23,10 @@ public class CraftingItem extends Item
{
super();
this.modTexPrefix = modTexturePrefix;
this.setCreativeTab(tab);
if (tab != null)
{
this.setCreativeTab(tab);
}
this.setMaxDamage(0);
this.setHasSubtypes(true);
this.textureNames = tex;