Use StringBuilder to its fullest
Linearized append logic
This commit is contained in:
@@ -38,7 +38,7 @@ public class ShapelessRecipe implements IRecipe, IRecipeBakeable
|
||||
StringBuilder ret = new StringBuilder( "Invalid shapeless 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