Fix GuiUploadScreenshot showOnDiskButton crashing the game on Windows
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user