Skip to content

Commit

Permalink
Fix minor code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LostLuma committed Apr 18, 2024
1 parent 135d0e7 commit 99bb770
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ public void renderList(DrawContext DrawContext, int mouseX, int mouseY, float de
int indent = 8;

var role = iterator.next();
var rolename = role.getKey();
var roleName = role.getKey();

var name = Text.translatableWithFallback("modmenu.credits.role." + rolename.toLowerCase(), rolename);
var component = Text.translatableWithFallback("modmenu.credits.role." + roleName.toLowerCase(), roleName);

for (var line : textRenderer.wrapLines(name.append(Text.literal(":")), wrapWidth - 16)) {
for (var line : textRenderer.wrapLines(component.append(Text.literal(":")), wrapWidth - 16)) {
children().add(new DescriptionEntry(line, indent));
indent = 16;
}
Expand Down

0 comments on commit 99bb770

Please sign in to comment.