From 8bc32aaa300e4d6631655eef5b131262ac6ff336 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 8 Jun 2017 01:38:10 +0200 Subject: [PATCH] Add 1.12 version to MinecraftVersion enum --- .../java/fr/pandacube/java/util/MinecraftVersion.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/pandacube/java/util/MinecraftVersion.java b/src/main/java/fr/pandacube/java/util/MinecraftVersion.java index 127e096..6a38c22 100644 --- a/src/main/java/fr/pandacube/java/util/MinecraftVersion.java +++ b/src/main/java/fr/pandacube/java/util/MinecraftVersion.java @@ -14,7 +14,8 @@ public enum MinecraftVersion { v1_9_3_to_1_9_4(110, "1.9.3-1.9.4"), 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_11_1_to_1_11_2(316, "1.11.1-1.11.2"), + v1_12(335, "1.12"); public final int versionNumber; public final String versionDisplay; @@ -80,6 +81,11 @@ public enum MinecraftVersion { versions.remove(v1_11_1_to_1_11_2); ret.add("1.11"); } + // grouping 1.12 versions + if (versions.contains(v1_12)) { + versions.remove(v1_12); + ret.add("1.12"); + } for (MinecraftVersion v : versions) ret.add(v.versionDisplay);