20 lines
930 B
Diff
20 lines
930 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: MrHua269 <mrhua269@gmail.com>
|
|
Date: Fri, 4 Apr 2025 08:17:32 +0800
|
|
Subject: [PATCH] Correct isWatched method in ScheduledTaskThreadPool
|
|
|
|
|
|
diff --git a/io/papermc/paper/threadedregions/ScheduledTaskThreadPool.java b/io/papermc/paper/threadedregions/ScheduledTaskThreadPool.java
|
|
index 2f61f72087ea07e8d29bf6d5c264e217b20eb377..3694b01f0dc04f6de2df1d926a9208f5711a3a8b 100644
|
|
--- a/io/papermc/paper/threadedregions/ScheduledTaskThreadPool.java
|
|
+++ b/io/papermc/paper/threadedregions/ScheduledTaskThreadPool.java
|
|
@@ -1229,7 +1229,7 @@ public final class ScheduledTaskThreadPool {
|
|
}
|
|
|
|
public boolean isWatched() {
|
|
- return (boolean)TAKEN_HANDLE.getVolatile(this);
|
|
+ return (boolean)WATCHED_HANDLE.getVolatile(this); // Luminol - Try fixing scheduling call issue
|
|
}
|
|
|
|
public long getLastTaskNotify() {
|