From 8ee25a03d63197c7c22b574b86e304dc3158f3b8 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Wed, 1 Jan 2025 14:39:25 -0800 Subject: [PATCH] fix: test compilation --- .../java/me/machinemaker/papertweaks/config/MixinsTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/me/machinemaker/papertweaks/config/MixinsTest.java b/src/test/java/me/machinemaker/papertweaks/config/MixinsTest.java index 5d5abb15..778e8afd 100644 --- a/src/test/java/me/machinemaker/papertweaks/config/MixinsTest.java +++ b/src/test/java/me/machinemaker/papertweaks/config/MixinsTest.java @@ -61,7 +61,7 @@ static void beforeEach() { when(mockServer.getWorld("world")).thenReturn(mockWorld); when(mockServer.getLogger()).thenReturn(Logger.getLogger("MockServer")); when(mockServer.getRegistry(any())).thenAnswer(invocation -> { - return new Registry<>() { + return new Registry.NotARegistry<>() { @Override public @Nullable Keyed get(final NamespacedKey key) { return null; @@ -76,6 +76,8 @@ public Stream stream() { public Iterator iterator() { return Collections.emptyIterator(); } + + }; }); Bukkit.setServer(mockServer);