FurnaceRecipe parser: Made the parser more forgiving.
Errors don't cause a stop in the parsing, but rather just skip the offending line.
This commit is contained in:
parent
b90b0a1dff
commit
67e3c645d3
|
@ -94,7 +94,7 @@ void cFurnaceRecipe::ReloadRecipes(void)
|
||||||
!ReadMandatoryNumber(BeginPos, "0123456789", ParsingLine, Line, IBurnTime, true) // Read item burn time - last value
|
!ReadMandatoryNumber(BeginPos, "0123456789", ParsingLine, Line, IBurnTime, true) // Read item burn time - last value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add to fuel list:
|
// Add to fuel list:
|
||||||
|
@ -129,7 +129,7 @@ void cFurnaceRecipe::ReloadRecipes(void)
|
||||||
!ReadOptionalNumbers(BeginPos, ":", "012456789", ParsingLine, Line, OItemCount, OItemHealth, true) // Read result count (and optionally health) - last value
|
!ReadOptionalNumbers(BeginPos, ":", "012456789", ParsingLine, Line, OItemCount, OItemHealth, true) // Read result count (and optionally health) - last value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add to recipe list
|
// Add to recipe list
|
||||||
|
|
Loading…
Reference in New Issue
Block a user