From 706ae682ec66c06558397b2597a35fb04e659359 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 9 Aug 2017 00:33:02 +0300 Subject: [PATCH] Add 1.12.1 in MinecraftVersion --- 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 6a38c22..bc03a01 100644 --- a/src/main/java/fr/pandacube/java/util/MinecraftVersion.java +++ b/src/main/java/fr/pandacube/java/util/MinecraftVersion.java @@ -15,7 +15,8 @@ public enum MinecraftVersion { v1_10(210, "1.10.x"), 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(335, "1.12"), + v1_12_1(338, "1.12.1"); public final int versionNumber; public final String versionDisplay; @@ -82,8 +83,9 @@ public enum MinecraftVersion { ret.add("1.11"); } // grouping 1.12 versions - if (versions.contains(v1_12)) { + if (versions.contains(v1_12) && versions.contains(v1_12_1)) { versions.remove(v1_12); + versions.remove(v1_12_1); ret.add("1.12"); }