Fix CraftScheduler#runTaskTimerAsynchronously(Plugin, Consumer<BukkitTask>, long, long) scheduling a non-repeating task instead of a repeating one.

This commit is contained in:
ossi 2020-06-12 01:38:06 +03:00
parent 6815064398
commit 2e59889281

View file

@ -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