From 7b0793ae38ccbd5d60be66f13574dd6f7b7b8598 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 8 Dec 2022 17:55:27 +0100 Subject: [PATCH] Added 1.19.3 in MinecraftVersion --- .../java/fr/pandacube/lib/util/MinecraftVersion.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pandalib-util/src/main/java/fr/pandacube/lib/util/MinecraftVersion.java b/pandalib-util/src/main/java/fr/pandacube/lib/util/MinecraftVersion.java index e5c7da4..1b5242b 100644 --- a/pandalib-util/src/main/java/fr/pandacube/lib/util/MinecraftVersion.java +++ b/pandalib-util/src/main/java/fr/pandacube/lib/util/MinecraftVersion.java @@ -98,7 +98,9 @@ public enum MinecraftVersion { /** Minecraft version 1.19, protocol version 759. */ v1_19(759, "1.19"), /** Minecraft versions 1.19.1 and 1.19.2, protocol version 760. */ - v1_19_1_to_1_19_2(760, "1.19.1", "1.19.2"); + v1_19_1_to_1_19_2(760, "1.19.1", "1.19.2"), + /** Minecraft versions 1.19.3, protocol version 761. */ + v1_19_3(761, "1.19.3"); // IMPORTANT: don't forget to update the versionMergeDisplay value when adding a new version; @@ -195,8 +197,12 @@ public enum MinecraftVersion { versionMergeDisplay.put(EnumSet.of(v1_18_to_1_18_1, v1_18_2), List.of("1.18.x")); - versionMergeDisplay.put(EnumSet.of(v1_19, v1_19_1_to_1_19_2), + versionMergeDisplay.put(EnumSet.of(v1_19, v1_19_1_to_1_19_2, v1_19_3), List.of("1.19.x")); + versionMergeDisplay.put(EnumSet.of(v1_19, v1_19_1_to_1_19_2), + List.of("1.19-1.19.2")); + versionMergeDisplay.put(EnumSet.of(v1_19_1_to_1_19_2, v1_19_3), + List.of("1.19.1-1.19.3")); }