mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-21 03:15:59 +01:00
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user