Added the new recipe parser, parsing the crafting.txt file. Included are a few recipes. The old parser still works, but will be replaced soon.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@549 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -125,7 +125,7 @@ void PrintNear( std::ifstream & f, int a_History = 64 )
|
||||
|
||||
void cRecipeChecker::ReloadRecipes()
|
||||
{
|
||||
LOG("--Loading recipes--");
|
||||
LOG("-- Loading recipes from recipes.txt --");
|
||||
ClearRecipes();
|
||||
|
||||
std::ifstream f;
|
||||
@@ -369,7 +369,7 @@ void cRecipeChecker::ReloadRecipes()
|
||||
}
|
||||
f.close();
|
||||
|
||||
LOG("--Done loading recipes, found %i recipes", m_pState->Recipes.size() );
|
||||
LOG("-- Done loading recipes, found %i recipes --", m_pState->Recipes.size() );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user