mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-24 22:04:33 +00:00
remove test book from creative tab, make sure crafting item wont NPE if there is no creative tab
This commit is contained in:
1 parent
4e17485459
commit
fb2b112d00
2 files changed
+5
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user