Fix GuiUploadScreenshot showOnDiskButton crashing the game on Windows

This commit is contained in:
CrushedPixel
2017-12-22 15:14:20 +01:00
parent 666a3611bb
commit 650cc1036d

View File

@@ -79,7 +79,7 @@ public class GuiUploadScreenshot extends AbstractGuiPopup<GuiUploadScreenshot> {
showOnDiskButton.onClick(() -> { showOnDiskButton.onClick(() -> {
try { try {
Desktop.getDesktop().browse(URI.create("file://" + renderSettings.getOutputFile().getAbsolutePath())); Desktop.getDesktop().browse(renderSettings.getOutputFile().toURI());
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }