Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
1337ec8ddf
Commit
949f7d1aeb
@ -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();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren