Cleanup: Use chained StringBuilder#append

This commit is contained in:
Phoenix616 2023-03-01 17:59:02 +01:00
parent 37c7b97fe8
commit 7ee8d07242
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ public class ItemInfoListener implements Listener {
message.append(ChatColor.GRAY);
message.append(capitalizeFirstLetter(item.getType().name(), '_') + " of ");
message.append(capitalizeFirstLetter(item.getType().name(), '_')).append(" of ");
message.append(capitalizeFirstLetter(potionMeta.getBasePotionData().getType().name(), '_')).append(' ');
if (potionMeta.getBasePotionData().isUpgraded()) {
message.append("II");