mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-19 10:29:50 +08:00
committed by
GitHub
Unverified
parent
f3277dee9f
commit
98fbc4e512
@@ -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