SteamWar/BauSystem2.0
Archiviert
12
0

Fix some stuff
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2023-06-17 20:09:02 +02:00
Ursprung 1337ec8ddf
Commit 949f7d1aeb

Datei anzeigen

@ -41,7 +41,7 @@ public class TPSWarpUtils {
public static void setTPS(double tps) { public static void setTPS(double tps) {
double d = 50 - (50 / (tps / 20.0)); double d = 50 - (50 / (tps / 20.0));
// nanoDOffset = Math.max(0, Math.min((long) (d * 1000000), 375000000)); // nanoDOffset = Math.max(0, Math.min((long) (d * 1000000), 375000000));
nanoDOffset = (long) (d * 1000000); nanoDOffset = Math.max(0, (long) (d * 1000000));
if (nanoDOffset == 0) { if (nanoDOffset == 0) {
if (bukkitTask == null) return; if (bukkitTask == null) return;
bukkitTask.cancel(); bukkitTask.cancel();