Gestion de la fusion des versions de MC 1.11 (pour l'affichage)

This commit is contained in:
Marc Baloup 2017-01-12 20:11:13 +01:00
parent 8ef1f9f5cb
commit 48bbec7ff0

View File

@ -74,6 +74,12 @@ public enum MinecraftVersion {
versions.remove(v1_10); versions.remove(v1_10);
ret.add("1.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) for (MinecraftVersion v : versions)
ret.add(v.versionDisplay); ret.add(v.versionDisplay);