From 6636b8fd4d1ac26fc7a9fbeffafa0908691d177b Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 17 Jan 2019 00:22:19 +0100 Subject: [PATCH] Adding 1.13.1 and 1.13.2 versions in MinecraftVersion enum --- .../java/fr/pandacube/java/util/MinecraftVersion.java | 11 ++++++++++- 1 file changed, 10 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 f4a281c..19bbdb4 100644 --- a/src/main/java/fr/pandacube/java/util/MinecraftVersion.java +++ b/src/main/java/fr/pandacube/java/util/MinecraftVersion.java @@ -18,7 +18,9 @@ public enum MinecraftVersion { v1_12(335, "1.12"), v1_12_1(338, "1.12.1"), v1_12_2(340, "1.12.2"), - v1_13(393, "1.13"); + v1_13(393, "1.13"), + v1_13_1(401, "1.13.1"), + v1_13_2(404, "1.13.2"); public final int versionNumber; public final String versionDisplay; @@ -91,6 +93,13 @@ public enum MinecraftVersion { versions.remove(v1_12_2); ret.add("1.12"); } + // grouping 1.13 versions + if (versions.contains(v1_13) && versions.contains(v1_13_1) && versions.contains(v1_13_2)) { + versions.remove(v1_13); + versions.remove(v1_13_1); + versions.remove(v1_13_2); + ret.add("1.13"); + } for (MinecraftVersion v : versions) ret.add(v.versionDisplay);