Error control, missing Item Control

Import ( not done ).
And recursive file importing.
This commit is contained in:
AlgorithmX2
2014-02-10 17:15:43 -06:00
parent 4a87ceac4f
commit 21c254f09f
5 changed files with 159 additions and 87 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package appeng.recipes.handlers;
import java.util.List;
import appeng.recipes.Ingredient;
import appeng.recipes.MissingIngredientError;
import appeng.recipes.RecipeError;
import appeng.recipes.RegistrationError;
import cpw.mods.fml.common.registry.GameRegistry;
@@ -31,7 +32,7 @@ public class Smelt extends CraftHandler
}
@Override
public void register() throws RegistrationError
public void register() throws RegistrationError, MissingIngredientError
{
if ( in.getItemStack().getItem() == null )
throw new RegistrationError( in.toString() + ": Smelting Input is not a valid item." );