From 4dd7f86416a0706579aeb97050e66f3275253baf Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Tue, 13 Mar 2018 13:26:47 +0100 Subject: [PATCH] Ajout version 1.12.2 --- src/main/java/fr/pandacube/java/util/MinecraftVersion.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/pandacube/java/util/MinecraftVersion.java b/src/main/java/fr/pandacube/java/util/MinecraftVersion.java index bc03a01..6f287cd 100644 --- a/src/main/java/fr/pandacube/java/util/MinecraftVersion.java +++ b/src/main/java/fr/pandacube/java/util/MinecraftVersion.java @@ -16,7 +16,8 @@ public enum MinecraftVersion { v1_11(315, "1.11"), v1_11_1_to_1_11_2(316, "1.11.1-1.11.2"), v1_12(335, "1.12"), - v1_12_1(338, "1.12.1"); + v1_12_1(338, "1.12.1"), + v1_12_2(340, "1.12.2"); public final int versionNumber; public final String versionDisplay; @@ -83,9 +84,10 @@ public enum MinecraftVersion { ret.add("1.11"); } // grouping 1.12 versions - if (versions.contains(v1_12) && versions.contains(v1_12_1)) { + if (versions.contains(v1_12) && versions.contains(v1_12_1) && versions.contains(v1_12_2)) { versions.remove(v1_12); versions.remove(v1_12_1); + versions.remove(v1_12_2); ret.add("1.12"); }