Skip to content

Commit fe62947

Browse files
committed
fix: just stdlib string repeating, this is modern java...
1 parent e10c2dc commit fe62947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/dev/ftb/mods/ftbranks/FTBRanksCommands.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ private static int setCondition(CommandSourceStack source, Rank rank, String val
257257
}
258258

259259
private static int showRank(CommandSourceStack source, Rank rank) {
260-
source.sendSuccess(new TextComponent(Strings.repeat("=", 50)).withStyle(ChatFormatting.GREEN), false);
260+
source.sendSuccess(new TextComponent("=".repeat(50)).withStyle(ChatFormatting.GREEN), false);
261261

262262
source.sendSuccess(new TranslatableComponent("ftbranks.show_rank.header", col(rank.getId(), ChatFormatting.WHITE), col(rank.getName(), ChatFormatting.WHITE), col(Integer.toString(rank.getPower()), ChatFormatting.WHITE)).withStyle(ChatFormatting.YELLOW), false);
263263

0 commit comments

Comments
 (0)