From 49eb9de165759054aa9921b88c0100d56a2868a4 Mon Sep 17 00:00:00 2001
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Date: Tue, 5 Dec 2023 15:25:12 -0700
Subject: [PATCH] fix timings patch field use

---
 patches/server/Timings-v2.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/patches/server/Timings-v2.patch b/patches/server/Timings-v2.patch
index a992b4ef6c..db94c4f8b2 100644
--- a/patches/server/Timings-v2.patch
+++ b/patches/server/Timings-v2.patch
@@ -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
 +