mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
fix timings patch field use
This commit is contained in:
@@ -743,11 +743,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ boolean isOversleep = false;
|
+ boolean isOversleep = false;
|
||||||
+ private boolean canOversleep() {
|
+ private boolean canOversleep() {
|
||||||
+ return this.mayHaveDelayedTasks && Util.getMillis() < this.delayedTasksMaxNextTickTime;
|
+ return this.mayHaveDelayedTasks && Util.getNanos() < this.delayedTasksMaxNextTickTimeNanos;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ private boolean canSleepForTickNoOversleep() {
|
+ private boolean canSleepForTickNoOversleep() {
|
||||||
+ return this.forceTicks || this.runningTask() || Util.getMillis() < this.nextTickTime;
|
+ return this.forceTicks || this.runningTask() || Util.getNanos() < this.nextTickTimeNanos;
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
+
|
+
|
||||||
|
Reference in New Issue
Block a user