Improve Platforms (#2275)

* Improve Platforms

* add this.
This commit is contained in:
Nazrin
2023-07-29 08:38:34 -07:00
committed by GitHub
parent f3277dee9f
commit 98fbc4e512
6 changed files with 91 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ public final class ServerTask implements Runnable {
*/
public boolean shouldRun() {
// Increase tick count.
var ticks = this.ticks++;
++this.ticks;
if (this.delay != -1 && this.considerDelay) {
// Check if the task should run.
var shouldRun = ticks >= this.delay;