Skip to content

Commit 3398655

Browse files
Update README to not show invalid "0 ticks" options
1 parent 86e1d6d commit 3398655

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ foliaLib.getImpl().runTimer(() -> {/* Code */}, 1, 20); // Using ticks
7676
foliaLib.getImpl().runTimer(() -> {/* Code */}, 1, 20 * 50L, TimeUnit.MILLISECONDS); // Using TimeUnit
7777

7878
// In both cases, this method will run asynchronously
79-
foliaLib.getImpl().runTimerAsync(() -> {/* Code */}, 0, 20); // Using ticks
80-
foliaLib.getImpl().runTimerAsync(() -> {/* Code */}, 0L, 20 * 50L, TimeUnit.MILLISECONDS); // Using TimeUnit
79+
foliaLib.getImpl().runTimerAsync(() -> {/* Code */}, 1, 20); // Using ticks
80+
foliaLib.getImpl().runTimerAsync(() -> {/* Code */}, 1, 20 * 50L, TimeUnit.MILLISECONDS); // Using TimeUnit
8181

8282
// On a folia server, this will run the code using the RegionScheduler that is appropriate for the location
8383
// On a spigot server, this will run the code on the main thread

0 commit comments

Comments
 (0)