mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
fix wrong period/timeunit for folia scheduling
This commit is contained in:
parent
4cb861badc
commit
ec5007c07e
@ -115,7 +115,7 @@ public class FoliaSchedulingProvider implements SchedulingProvider, Listener {
|
||||
|
||||
@Override
|
||||
public EssentialsTask runAsyncTaskRepeating(Runnable runnable, long delay, long period) {
|
||||
final ScheduledTask task = plugin.getServer().getAsyncScheduler().runAtFixedRate(plugin, scheduledTask -> runnable.run(), delay, delay * 50, TimeUnit.MICROSECONDS);
|
||||
final ScheduledTask task = plugin.getServer().getAsyncScheduler().runAtFixedRate(plugin, scheduledTask -> runnable.run(), delay, period * 50, TimeUnit.MILLISECONDS);
|
||||
return task::cancel;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user