quick fix : 'StringBuilder' can be replaced with 'String'

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 2d13e6185e
commit a7bc4185c7
5 files changed
+7 -30

No files matched your search

@@ -23,10 +23,7 @@ public class CraftedSoilItemBlock extends MultiItemBlock {
public String getUnlocalizedName(ItemStack itemstack) {
int pos = MathHelper.clamp_int(itemstack.getItemDamage(), 0, blockTypes.length - 1);
if (pos <= 4) return super.getUnlocalizedName(itemstack);
return (new StringBuilder())
.append("block.slime.soil.")
.append(blockTypes[pos])
.toString();
return "block.slime.soil." + blockTypes[pos];
}
@Override