From 48bbec7ff028874c319d06c6cb6115471c212a8c Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 12 Jan 2017 20:11:13 +0100 Subject: [PATCH] Gestion de la fusion des versions de MC 1.11 (pour l'affichage) --- src/main/java/fr/pandacube/java/util/MinecraftVersion.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/fr/pandacube/java/util/MinecraftVersion.java b/src/main/java/fr/pandacube/java/util/MinecraftVersion.java index 1ee3385..127e096 100644 --- a/src/main/java/fr/pandacube/java/util/MinecraftVersion.java +++ b/src/main/java/fr/pandacube/java/util/MinecraftVersion.java @@ -74,6 +74,12 @@ public enum MinecraftVersion { versions.remove(v1_10); ret.add("1.10"); } + // grouping 1.11 versions + if (versions.contains(v1_11) && versions.contains(v1_11_1_to_1_11_2)) { + versions.remove(v1_11); + versions.remove(v1_11_1_to_1_11_2); + ret.add("1.11"); + } for (MinecraftVersion v : versions) ret.add(v.versionDisplay);