Fixed ServerUtils

This commit is contained in:
Auxilor
2021-11-02 18:29:17 +00:00
parent 39d6eb7f9a
commit 0c2e1f0cae

View File

@@ -25,7 +25,13 @@ public class ServerUtils {
public double getTps() {
Validate.notNull(tpsSupplier, "Not initialized!");
return tpsSupplier.get();
double tps = tpsSupplier.get();
if (tps > 20) {
return 20;
} else {
return tps;
}
}
/**