mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-13 19:51:27 +01:00
Set lastUpdateTime on task creation, otherwise delayed task won't be delayed
This commit is contained in:
parent
2fd7f2b310
commit
edbc189b98
@ -23,6 +23,7 @@ public class SchedulerManager {
|
||||
runnable.setId(id);
|
||||
|
||||
Task task = new Task(runnable, updateOption, maxCallCount);
|
||||
task.refreshLastUpdateTime(System.currentTimeMillis());
|
||||
this.tasks.add(task);
|
||||
|
||||
return id;
|
||||
|
Loading…
Reference in New Issue
Block a user