Minor code refactoring

This commit is contained in:
CrushedPixel
2015-05-05 10:52:18 +02:00
parent 36eab58705
commit aeb8f5c0cb
3 changed files with 11 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ public class GuiRegister extends GuiScreen {
if(usernameInput.getText().length() < 5) {
message = I18n.format("replaymod.gui.register.error.shortusername");
} else if(!EmailAddressUtils.isValidEmailAddress(mailInput.getText())) {
message = I18n.format("replaymod.gui.register.error.invalidmail");
message = I18n.format("replaymod.api.invalidmail");
} else if(!(passwordInput.getText().length() >= 5)) {
message = I18n.format("replaymod.gui.register.error.shortpw");
} else if(!passwordConfirmation.getText().equals(passwordInput.getText())) {