13
0
geforkt von Mirrors/Paper

fix timings patch field use

Dieser Commit ist enthalten in:
Jason Penilla 2023-12-05 15:25:12 -07:00
Ursprung 9811c737bb
Commit 49eb9de165

Datei anzeigen

@ -743,11 +743,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // Paper start
+ boolean isOversleep = false;
+ private boolean canOversleep() {
+ return this.mayHaveDelayedTasks && Util.getMillis() < this.delayedTasksMaxNextTickTime;
+ return this.mayHaveDelayedTasks && Util.getNanos() < this.delayedTasksMaxNextTickTimeNanos;
+ }
+
+ private boolean canSleepForTickNoOversleep() {
+ return this.forceTicks || this.runningTask() || Util.getMillis() < this.nextTickTime;
+ return this.forceTicks || this.runningTask() || Util.getNanos() < this.nextTickTimeNanos;
+ }
+ // Paper end
+