Nvm on creative release.
This commit is contained in:
parent
2b8cd80f32
commit
b42f475e4a
1 changed files with 0 additions and 19 deletions
|
@ -266,21 +266,11 @@ public class RecipeHandler implements IRecipeHandler
|
||||||
return in;
|
return in;
|
||||||
}
|
}
|
||||||
|
|
||||||
class CreativeOnlyException extends Exception
|
|
||||||
{
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1294198926500186893L;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void parseRecipes(IRecipeLoader loader, String path)
|
public void parseRecipes(IRecipeLoader loader, String path)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if ( creativeOnly() )
|
|
||||||
throw new CreativeOnlyException();
|
|
||||||
|
|
||||||
BufferedReader reader = null;
|
BufferedReader reader = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -378,10 +368,6 @@ public class RecipeHandler implements IRecipeHandler
|
||||||
reader.close();
|
reader.close();
|
||||||
processTokens( loader, path, line );
|
processTokens( loader, path, line );
|
||||||
}
|
}
|
||||||
catch (CreativeOnlyException e)
|
|
||||||
{
|
|
||||||
AELog.warning( "Recipes are Currently Disabled" );
|
|
||||||
}
|
|
||||||
catch (Throwable e)
|
catch (Throwable e)
|
||||||
{
|
{
|
||||||
AELog.error( e );
|
AELog.error( e );
|
||||||
|
@ -390,11 +376,6 @@ public class RecipeHandler implements IRecipeHandler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean creativeOnly()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void processTokens(IRecipeLoader loader, String file, int line) throws RecipeError
|
private void processTokens(IRecipeLoader loader, String file, int line) throws RecipeError
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in a new issue