KubeJS (Old)

KubeJS (Old)

3M Downloads

server#scheduleRepeating not repeating

pietro-lopes opened this issue ยท 0 comments

commented

Minecraft Version

1.21

Describe your issue

default ScheduledEvents.ScheduledEvent kjs$scheduleRepeating(TemporalAmount timer, ScheduledEvents.Callback callback) {
return kjs$getScheduledEvents().schedule(timer, false, callback);
}

I think the second argument should be true, signature for reference:

public ScheduledEvent schedule(TemporalAmount timer, boolean repeating, ScheduledEvents.Callback callback) {