From 4edf759bd3e50d2c9b588bed9793e854e6455d33 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Mon, 28 Feb 2022 20:03:10 +0100 Subject: [PATCH] Added 1.18.2 + fix NMSReflect html renrering --- .../java/fr/pandacube/lib/core/util/MinecraftVersion.java | 6 +++++- .../java/fr/pandacube/lib/paper/reflect/NMSReflect.java | 3 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Core/src/main/java/fr/pandacube/lib/core/util/MinecraftVersion.java b/Core/src/main/java/fr/pandacube/lib/core/util/MinecraftVersion.java index 722fe6e..bed3169 100644 --- a/Core/src/main/java/fr/pandacube/lib/core/util/MinecraftVersion.java +++ b/Core/src/main/java/fr/pandacube/lib/core/util/MinecraftVersion.java @@ -53,7 +53,8 @@ public enum MinecraftVersion { v1_17(755, "1.17"), v1_17_1(756, "1.17.1"), - v1_18_to_1_18_1(757, "1.18", "1.18.1"); + v1_18_to_1_18_1(757, "1.18", "1.18.1"), + v1_18_2(758, "1.18.2"); // IMPORTANT: don't forget to update the versionMergeDisplay value when adding a new version; private static Map, List> versionMergeDisplay; @@ -145,6 +146,9 @@ public enum MinecraftVersion { versionMergeDisplay.put(EnumSet.of(v1_17, v1_17_1), ImmutableList.of("1.17.x")); + + versionMergeDisplay.put(EnumSet.of(v1_18_to_1_18_1, v1_18_2), + ImmutableList.of("1.18.x")); } diff --git a/Paper/src/main/java/fr/pandacube/lib/paper/reflect/NMSReflect.java b/Paper/src/main/java/fr/pandacube/lib/paper/reflect/NMSReflect.java index 094af51..3e4459f 100644 --- a/Paper/src/main/java/fr/pandacube/lib/paper/reflect/NMSReflect.java +++ b/Paper/src/main/java/fr/pandacube/lib/paper/reflect/NMSReflect.java @@ -178,9 +178,6 @@ public class NMSReflect { font-size: 1.1em; border-top: solid 1px white; } - a, a:visited { - color: #ddd; - } .kw { color: #CC6C1D; }