From 579c5fd13cb11222c18adc4d2a2e2082c5fd3ab6 Mon Sep 17 00:00:00 2001 From: TheMode Date: Mon, 5 Jul 2021 08:22:51 +0200 Subject: [PATCH] Fix rebase --- src/test/java/demo/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/demo/Main.java b/src/test/java/demo/Main.java index 3cbd03e19..3dd4a1093 100644 --- a/src/test/java/demo/Main.java +++ b/src/test/java/demo/Main.java @@ -52,7 +52,7 @@ public class Main { commandManager.setUnknownCommandCallback((sender, command) -> sender.sendMessage(Component.text("Unknown command", NamedTextColor.RED))); - MinecraftServer.getBenchmarkManager().enable(new UpdateOption(10 * 1000, TimeUnit.MILLISECOND)); + MinecraftServer.getBenchmarkManager().enable(Duration.of(10, TimeUnit.SECOND)); MinecraftServer.getSchedulerManager().buildShutdownTask(() -> System.out.println("Good night")).schedule();