mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-23 13:40:04 +00:00
quick fix : 'StringBuilder' can be replaced with 'String'
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user