Use StringBuilder to its fullest
Linearized append logic
This commit is contained in:
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user