Tweak how nugget recipes are done once again, and \o/ 2500th commit!

This commit is contained in:
ProfessorProspector 2016-12-22 15:12:13 -08:00
parent 2e9bf11569
commit 415660c988
2 changed files with 10 additions and 5 deletions

View file

@ -2,6 +2,7 @@ package techreborn.items;
import com.google.common.base.CaseFormat;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.NonNullList;
@ -29,6 +30,12 @@ public class ItemIngots extends ItemTRNoDestroy {
return new ItemStack(ModItems.ingots, count, i);
}
}
if (name.equalsIgnoreCase("iron")) {
return new ItemStack(Items.IRON_INGOT);
}
if (name.equalsIgnoreCase("gold")) {
return new ItemStack(Items.GOLD_INGOT);
}
throw new InvalidParameterException("The ingot " + name + " could not be found.");
}