Skip to content

Commit

Permalink
fix: test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Machine-Maker committed Jan 1, 2025
1 parent 94531b3 commit 8ee25a0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -76,6 +76,8 @@ public Stream<Keyed> stream() {
public Iterator<Keyed> iterator() {
return Collections.emptyIterator();
}


};
});
Bukkit.setServer(mockServer);
Expand Down

0 comments on commit 8ee25a0

Please sign in to comment.