aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patches/server/0696-Add-advancement-display-API.patch11
1 files changed, 9 insertions, 2 deletions
diff --git a/patches/server/0696-Add-advancement-display-API.patch b/patches/server/0696-Add-advancement-display-API.patch
index dd860e3b4d..ffabea75c3 100644
--- a/patches/server/0696-Add-advancement-display-API.patch
+++ b/patches/server/0696-Add-advancement-display-API.patch
@@ -129,21 +129,28 @@ index c47cae84f3b6970247d78382f48ae8ddbc202b59..0a46eeefa7d704350321828166f0049d
}
diff --git a/src/test/java/io/papermc/paper/advancement/AdvancementFrameTest.java b/src/test/java/io/papermc/paper/advancement/AdvancementFrameTest.java
new file mode 100644
-index 0000000000000000000000000000000000000000..4d043e0e43ef8bb75788e195f95b5a50a51a2a48
+index 0000000000000000000000000000000000000000..8888e6026d65ac74d6e7471763dfa18807216c3e
--- /dev/null
+++ b/src/test/java/io/papermc/paper/advancement/AdvancementFrameTest.java
-@@ -0,0 +1,24 @@
+@@ -0,0 +1,31 @@
+package io.papermc.paper.advancement;
+
++import com.mojang.logging.LogUtils;
+import io.papermc.paper.adventure.PaperAdventure;
+import net.kyori.adventure.text.format.TextColor;
+import net.minecraft.advancements.FrameType;
+import net.minecraft.network.chat.contents.TranslatableContents;
++import org.junit.Before;
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+
+public class AdvancementFrameTest {
++ @Before
++ public void before() {
++ // Work around weird classloading issue when initializing PaperAdventure
++ LogUtils.getLogger();
++ }
+
+ @Test
+ public void test() {