aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/unapplied/server/0360-Fix-CraftScheduler-runTaskTimerAsynchronously-Plugin.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-12-03 17:58:41 +0100
committerNassim Jahnke <[email protected]>2024-12-03 17:58:41 +0100
commitc0a3d51ab35930e410fcd9752ceaff6c3f581c24 (patch)
treef53076a8b0787d2f544f73f468df94619e5eb1a5 /patches/unapplied/server/0360-Fix-CraftScheduler-runTaskTimerAsynchronously-Plugin.patch
parentda7138233f6392e791d790d1c3407414c855f9c2 (diff)
downloadPaper-c0a3d51ab35930e410fcd9752ceaff6c3f581c24.tar.gz
Paper-c0a3d51ab35930e410fcd9752ceaff6c3f581c24.zip
Start update, apply API patches
Diffstat (limited to 'patches/unapplied/server/0360-Fix-CraftScheduler-runTaskTimerAsynchronously-Plugin.patch')
-rw-r--r--patches/unapplied/server/0360-Fix-CraftScheduler-runTaskTimerAsynchronously-Plugin.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/unapplied/server/0360-Fix-CraftScheduler-runTaskTimerAsynchronously-Plugin.patch b/patches/unapplied/server/0360-Fix-CraftScheduler-runTaskTimerAsynchronously-Plugin.patch
new file mode 100644
index 0000000000..2b6515bcf7
--- /dev/null
+++ b/patches/unapplied/server/0360-Fix-CraftScheduler-runTaskTimerAsynchronously-Plugin.patch
@@ -0,0 +1,21 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: ossi <[email protected]>
+Date: Fri, 12 Jun 2020 01:38:06 +0300
+Subject: [PATCH] Fix CraftScheduler#runTaskTimerAsynchronously(Plugin,
+ Consumer<BukkitTask>, long, long) scheduling a non-repeating task instead of
+ a repeating one.
+
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
+index 4f2eafbc012b7f9bdbe409d266fdb467ec788de6..20760e08b3d9aba86969b886b46deec5b125bf1f 100644
+--- a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
++++ b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
+@@ -196,7 +196,7 @@ public class CraftScheduler implements BukkitScheduler {
+
+ @Override
+ public void runTaskTimerAsynchronously(Plugin plugin, Consumer<? super BukkitTask> task, long delay, long period) throws IllegalArgumentException {
+- this.runTaskTimerAsynchronously(plugin, (Object) task, delay, CraftTask.NO_REPEATING);
++ this.runTaskTimerAsynchronously(plugin, (Object) task, delay, period); // Paper
+ }
+
+ @Override