From 10aa35f5d716e20d0108f5be65d09b8fe86b65df Mon Sep 17 00:00:00 2001 From: Querz Date: Wed, 24 Jun 2020 12:20:26 +0200 Subject: [PATCH] update to 1.11.1 and show current version in window title --- README.md | 11 ++++++----- build.gradle | 2 +- src/main/java/net/querz/mcaselector/ui/Window.java | 7 ++++++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9ca60dab..e2d81917 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ For people who prefer watching a video to understand how the MCA Selector works, there is a very nice tutorial on Youtube explaining the basics: * [How To Clear Unwanted Chunks In Minecraft 1.16 | MCASelector Tutorial](https://www.youtube.com/watch?v=ADDTXGRJo20) by [Muriako](https://www.youtube.com/channel/UCpt-MjKkc5X4W7bUFV3Dwrw) +* [Preparing Your World for the Nether Update! - The Minecraft Survival Guide](https://www.youtube.com/watch?v=1fiyVvoD9jQ) starting at [2:52](https://www.youtube.com/watch?v=1fiyVvoD9jQ&t=2m52s) by [Pixlriffs](https://www.youtube.com/channel/UCgGjBqZZtAjxfpGSba7d6ww) * [How To Reset The End Dimension! - The Minecraft Survival Guide](https://www.youtube.com/watch?v=p-2gFkJl_Lo) starting at [8:45](https://www.youtube.com/watch?v=p-2gFkJl_Lo&t=8m45s) by [Pixlriffs](https://www.youtube.com/channel/UCgGjBqZZtAjxfpGSba7d6ww) ### Navigation @@ -316,7 +317,7 @@ If you would like to contribute a translation, you can find the language files i ## Download and installation -[**Download Version 1.11**](https://github.com/Querz/mcaselector/releases/download/1.11/mcaselector-1.11.jar) +[**Download Version 1.11.1**](https://github.com/Querz/mcaselector/releases/download/1.11.1/mcaselector-1.11.1.jar) "Requirements": * Either: @@ -327,11 +328,11 @@ If you would like to contribute a translation, you can find the language files i #### If you have Java from Oracle installed on your system -Most likely, `.jar` files are associated with java on your computer, it should therefore launch by simply double clicking the file (or however your OS is configured to open files using your mouse or keyboard). If not, you can try `java -jar mcaselector-1.11.jar` from your console. If this doesn't work, you might want to look into how to modify the `PATH` variable on your system to tell your system that java is an executable program. +Most likely, `.jar` files are associated with java on your computer, it should therefore launch by simply double clicking the file (or however your OS is configured to open files using your mouse or keyboard). If not, you can try `java -jar mcaselector-1.11.1.jar` from your console. If this doesn't work, you might want to look into how to modify the `PATH` variable on your system to tell your system that java is an executable program. #### If you have Minecraft Java Edition installed on your system -Minecraft Java Edition comes with a JRE that you can use to start the MCA Selector, so there is no need to install another version of java on your system. On Windows, that java version is usually located in `C:\Program Files (x86)\Minecraft\runtime\jre-x64\bin\` and once inside this folder you can simply run `java.exe -jar `. On Mac OS you should find it in `~/Library/Application\ Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/` where you can execute `./java -jar `. +Minecraft Java Edition comes with a JRE that you can use to start the MCA Selector, so there is no need to install another version of java on your system. On Windows, that java version is usually located in `C:\Program Files (x86)\Minecraft\runtime\jre-x64\bin\` and once inside this folder you can simply run `java.exe -jar `. On Mac OS you should find it in `~/Library/Application\ Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/` where you can execute `./java -jar `. **WARNING:** For macOS 10.14+ (Mojave) It is NOT recommended to use the JRE provided by Minecraft (1.8.0_74), because it contains a severe bug that causes JavaFX applications to crash when they lose focus while a dialog window (such as the save-file-dialog) is open (see the bug report [here](https://bugs.openjdk.java.net/browse/JDK-8211304)). This bug has been fixed in Java 1.8.0_201 and above. @@ -345,12 +346,12 @@ If you are using Java 11 or higher, the JavaFX modules are not included automati On Windows with Oracle Java 13: ``` -"C:\Program Files\Java\jdk-13.0.1\bin\java.exe" --module-path "C:\Program Files\Java\javafx-sdk-13.0.1\lib" --add-modules ALL-MODULE-PATH -jar mcaselector-1.11.jar +"C:\Program Files\Java\jdk-13.0.1\bin\java.exe" --module-path "C:\Program Files\Java\javafx-sdk-13.0.1\lib" --add-modules ALL-MODULE-PATH -jar mcaselector-1.11.1.jar ``` On Debian with OpenJDK 11 and openjfx: ``` -java --module-path /usr/share/openjfx/lib --add-modules ALL-MODULE-PATH -jar mcaselector-1.11.jar +java --module-path /usr/share/openjfx/lib --add-modules ALL-MODULE-PATH -jar mcaselector-1.11.1.jar ``` ## diff --git a/build.gradle b/build.gradle index d6381f5d..24da0c1c 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ apply plugin: 'idea' apply plugin: 'css' group 'net.querz.mcaselector' -version '1.11' +version '1.11.1' sourceCompatibility = 1.8 diff --git a/src/main/java/net/querz/mcaselector/ui/Window.java b/src/main/java/net/querz/mcaselector/ui/Window.java index d70be93b..1e4eeb3b 100644 --- a/src/main/java/net/querz/mcaselector/ui/Window.java +++ b/src/main/java/net/querz/mcaselector/ui/Window.java @@ -7,6 +7,7 @@ import javafx.stage.Stage; import net.querz.mcaselector.tiles.TileMap; import net.querz.mcaselector.io.FileHelper; +import java.io.IOException; import java.net.URL; import java.util.*; @@ -18,7 +19,11 @@ public class Window extends Application { @Override public void start(Stage primaryStage) { - primaryStage.setTitle("MCA Selector"); + try { + primaryStage.setTitle("MCA Selector " + FileHelper.getManifestAttributes().getValue("Application-Version")); + } catch (IOException ex) { + primaryStage.setTitle("MCA Selector - dev"); + } primaryStage.getIcons().add(FileHelper.getIconFromResources("img/icon")); TileMap tileMap = new TileMap(this, width, height);