Game doesn't crash when being unable to go to the github repo page
This commit is contained in:
parent
110e54e063
commit
b537b83736
|
@ -501,7 +501,7 @@ public class MainMenu extends BasicGameState {
|
|||
else if (repoButton != null && repoButton.contains(x, y)) {
|
||||
try {
|
||||
Desktop.getDesktop().browse(Options.REPOSITORY_URI);
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | UnsupportedOperationException e) {
|
||||
ErrorHandler.error("Could not browse to repository URI.", e, false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user