From a8f52aa39d7881f89991cac5094934f750c94067 Mon Sep 17 00:00:00 2001 From: TheMode Date: Mon, 10 May 2021 01:38:29 +0200 Subject: [PATCH] Remove unnecessary constant --- src/main/java/net/minestom/server/MinecraftServer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/MinecraftServer.java b/src/main/java/net/minestom/server/MinecraftServer.java index 5f7197cbd..88e3aacda 100644 --- a/src/main/java/net/minestom/server/MinecraftServer.java +++ b/src/main/java/net/minestom/server/MinecraftServer.java @@ -91,8 +91,7 @@ public final class MinecraftServer { // Config // Can be modified at performance cost when increased public static final int TICK_PER_SECOND = 20; - private static final int MS_TO_SEC = 1000; - public static final int TICK_MS = MS_TO_SEC / TICK_PER_SECOND; + public static final int TICK_MS = 1000 / TICK_PER_SECOND; // Network monitoring private static int rateLimit = 300;