Skip to content

Commit

Permalink
Merge pull request #978 from AoElite/2.0
Browse files Browse the repository at this point in the history
fixed runAtFixedRate not using ticks when running on folia
  • Loading branch information
retrooper authored Sep 1, 2024
2 parents dc015dc + 6b84c68 commit 9a7bb17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public TaskWrapper runAtFixedRate(@NotNull Plugin plugin, @NotNull Consumer<Obje
return new TaskWrapper(bukkitScheduler.runTaskTimerAsynchronously(plugin, () -> task.accept(null), initialDelayTicks, periodTicks));
}

return new TaskWrapper(asyncScheduler.runAtFixedRate(plugin, (o) -> task.accept(null), initialDelayTicks, periodTicks, TimeUnit.MILLISECONDS));
return new TaskWrapper(asyncScheduler.runAtFixedRate(plugin, (o) -> task.accept(null), initialDelayTicks * 50, periodTicks * 50, TimeUnit.MILLISECONDS));
}

/**
Expand Down

0 comments on commit 9a7bb17

Please sign in to comment.