Add pre build tools to NEI

This commit is contained in:
Technus 2017-03-18 12:48:42 +01:00
parent 0b32f44a6f
commit 5fac76aa71

View file

@ -308,11 +308,19 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item implements
@Override
@SideOnly(Side.CLIENT)
public final void getSubItems(Item var1, CreativeTabs aCreativeTab, List aList) {
for (int i = 0; i < 32766; i += 2)
for (int i = 0; i < 32766; i += 2) {
if (getToolStats(new ItemStack(this, 1, i)) != null) {
ItemStack tStack = new ItemStack(this, 1, i);
isItemStackUsable(tStack);
aList.add(tStack);
//aList.add(getToolWithStats(i,1,Materials.Lead,Materials.Lead,null));
//aList.add(getToolWithStats(i,1,Materials.Nickel,Materials.Nickel,null));
//aList.add(getToolWithStats(i,1,Materials.Cobalt,Materials.Cobalt,null));
//aList.add(getToolWithStats(i,1,Materials.Osmium,Materials.Osmium,null));
//aList.add(getToolWithStats(i,1,Materials.Adamantium,Materials.Adamantium,null));
aList.add(getToolWithStats(i,1,Materials.Neutronium,Materials.Neutronium,null));
}
}
}