Skip to content

Commit a5e7bdc

Browse files
committed
update Versions, small improvements
1 parent e6da57e commit a5e7bdc

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ViaTesting
22
Simple tool to create minecraft servers (Paper, Waterfall, ...) with Via* preinstalled.
33

4-
For the custom java version you need a folder in the same directory as the jar named java-xx (8,11,17,19) e.g. java-17
4+
For the custom java version you need a folder in the same directory as the jar named java-xx (8,11,16,17,19,20,21,22,25) e.g. java-17
55

66
This tool was made for easier debugging & support and is not meant to create production servers.
77

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>de.jo0001</groupId>
88
<artifactId>ViaTesting</artifactId>
9-
<version>1.9</version>
9+
<version>1.10</version>
1010

1111
<properties>
1212
<maven.compiler.source>11</maven.compiler.source>

src/main/java/de/jo0001/viaTesting/core/Controller.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ public void initialize(URL url, ResourceBundle resourceBundle) {
5454
logger.log(Level.INFO, "Fetching Mojang data");
5555
DownloadUtil.getVersions().entrySet().stream()
5656
.flatMap(e -> StreamSupport.stream(e.getValue().getAsJsonArray().spliterator(), false))
57-
.map(JsonElement::getAsString).collect(Collectors.toCollection(ArrayDeque::new))
57+
.map(JsonElement::getAsString).filter(e -> !e.contains("-")).collect(Collectors.toCollection(ArrayDeque::new))
5858
.descendingIterator().forEachRemaining(mcVersionsPaper::add);
5959
JsonObject mojangData = DownloadUtil.getMojangData();
6060
mojangData.getAsJsonArray("versions").forEach(e -> {
6161
JsonObject eo = e.getAsJsonObject();
6262
String id = eo.get("id").getAsString();
63-
if ((eo.get("type").getAsString().equals("release") || eo.get("type").getAsString().equals("snapshot") )&& mcVersionsPaper.contains(id)) {
63+
if ((eo.get("type").getAsString().equals("release") || eo.get("type").getAsString().equals("snapshot")) && mcVersionsPaper.contains(id)) {
6464
try {
6565
mojangjars.put(id, DownloadUtil.getMojangJarUrl(eo.get("url").getAsString()));
6666
} catch (IOException ex) {
@@ -84,7 +84,7 @@ public void initialize(URL url, ResourceBundle resourceBundle) {
8484
ObservableList items = javaCB.getItems();
8585
String value = "System (" + System.getProperty("java.version") + ")";
8686
items.add(0, value);
87-
int[] javaVersions = {8, 11, 16, 17, 19, 20, 21, 22};
87+
int[] javaVersions = {8, 11, 16, 17, 19, 20, 21, 22, 25};
8888
for (int javaVersion : javaVersions) {
8989
if (new File("java-" + javaVersion).exists()) {
9090
items.add("Java " + javaVersion);

src/main/java/de/jo0001/viaTesting/util/Util.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ public static String idToVersion(final int id) {
120120
case 772:
121121
return "1.21.8";
122122
case 773:
123-
return "1.21.9";
123+
return "1.21.10";
124+
case 774:
125+
return "1.21.11";
124126
default:
125127
return "Unknown";
126128
}

0 commit comments

Comments
 (0)