Use StringBuilder to its fullest

Linearized append logic
This commit is contained in:
thatsIch
2014-10-01 11:07:13 +02:00
parent e1627734b1
commit d6917fdc5b
3 changed files with 20 additions and 6 deletions
@@ -79,7 +79,7 @@ public class ShapedRecipe implements IRecipe, IRecipeBakeable
StringBuilder ret = new StringBuilder( "Invalid shaped ore recipe: " );
for (Object tmp : recipe)
{
ret.append( tmp + ", " );
ret.append( tmp ).append( ", " );
}
ret.append( output );
throw new RuntimeException( ret.toString() );
@@ -101,7 +101,7 @@ public class ShapedRecipe implements IRecipe, IRecipeBakeable
StringBuilder ret = new StringBuilder( "Invalid shaped ore recipe: " );
for (Object tmp : recipe)
{
ret.append( tmp + ", " );
ret.append( tmp ).append( ", " );
}
ret.append( output );
throw new RuntimeException( ret.toString() );