From 9cff92f38457ed23dbc9755d6cf36680398880bf Mon Sep 17 00:00:00 2001 From: greesyB Date: Wed, 19 Apr 2023 17:33:30 -0500 Subject: [PATCH] Make if statements readable + spotless --- .../ic2/nuclearcontrol/gui/GuiInfoPanel.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/java/shedar/mods/ic2/nuclearcontrol/gui/GuiInfoPanel.java b/src/main/java/shedar/mods/ic2/nuclearcontrol/gui/GuiInfoPanel.java index 393d0d0..332dc0d 100644 --- a/src/main/java/shedar/mods/ic2/nuclearcontrol/gui/GuiInfoPanel.java +++ b/src/main/java/shedar/mods/ic2/nuclearcontrol/gui/GuiInfoPanel.java @@ -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); } }