Skip to content

Commit

Permalink
Make if statements readable + spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
greesyB committed Apr 19, 2023
1 parent 14be90a commit 9cff92f
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,14 @@ protected void actionPerformed(GuiButton button) {

@Override
protected void keyTyped(char par1, int par2) {
if (textboxTitle != null && textboxTitle.isFocused()) if (par2 == 1) mc.thePlayer.closeScreen();
else if (par1 == 13) updateTitle();
else {
modified = true;
textboxTitle.textboxKeyTyped(par1, par2);
updateTitle();
}
else super.keyTyped(par1, par2);
if (textboxTitle != null && textboxTitle.isFocused()) {
if (par2 == 1) mc.thePlayer.closeScreen();
else if (par1 == 13) updateTitle();
else {
modified = true;
textboxTitle.textboxKeyTyped(par1, par2);
updateTitle();
}
} else super.keyTyped(par1, par2);
}
}

0 comments on commit 9cff92f

Please sign in to comment.