Modifiable TPS

This commit is contained in:
TheMode 2021-05-10 04:58:23 +02:00
parent a8f52aa39d
commit 653417be75

View File

@ -90,7 +90,7 @@ public final class MinecraftServer {
// Config // Config
// Can be modified at performance cost when increased // Can be modified at performance cost when increased
public static final int TICK_PER_SECOND = 20; public static final int TICK_PER_SECOND = Integer.getInteger("minestom.tps", 20);
public static final int TICK_MS = 1000 / TICK_PER_SECOND; public static final int TICK_MS = 1000 / TICK_PER_SECOND;
// Network monitoring // Network monitoring