mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +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
@@ -183,13 +183,7 @@ public class Arrow extends ToolCore {
|
||||
else color = "\u00a76";
|
||||
}
|
||||
|
||||
String energy = new StringBuilder()
|
||||
.append(color)
|
||||
.append(tags.getInteger("Energy"))
|
||||
.append("/")
|
||||
.append(getMaxEnergyStored(stack))
|
||||
.append(" RF")
|
||||
.toString();
|
||||
String energy = color + tags.getInteger("Energy") + "/" + getMaxEnergyStored(stack) + " RF";
|
||||
list.add(energy);
|
||||
}
|
||||
if (tags.hasKey("InfiTool")) {
|
||||
|
||||
@@ -110,13 +110,7 @@ public class Shortbow extends BowBase {
|
||||
else color = "\u00a76";
|
||||
}
|
||||
|
||||
String energy = new StringBuilder()
|
||||
.append(color)
|
||||
.append(tags.getInteger("Energy"))
|
||||
.append("/")
|
||||
.append(getMaxEnergyStored(stack))
|
||||
.append(" RF")
|
||||
.toString();
|
||||
String energy = color + tags.getInteger("Energy") + "/" + getMaxEnergyStored(stack) + " RF";
|
||||
list.add(energy);
|
||||
}
|
||||
if (tags.hasKey("InfiTool")) {
|
||||
|
||||
Reference in new issue
Block a user