Files
spigot-leaf/src/main/java/games/dmg/leaf/LeafRecoveryTask.java
T
dmg 320c8ce193
Release / release (push) Successful in 2m7s
CI / build (push) Successful in 1m1s
fix(protection): restore cleared Leaf effects
2026-08-10 23:09:54 -04:00

20 lines
490 B
Java

package games.dmg.leaf;
import java.util.Objects;
/** Periodically restores eligible protection after effects are cleared or expire. */
public final class LeafRecoveryTask implements Runnable {
static final long INTERVAL_TICKS = 20L;
private final LeafRuntime runtime;
public LeafRecoveryTask(LeafRuntime runtime) {
this.runtime = Objects.requireNonNull(runtime, "runtime");
}
@Override
public void run() {
runtime.reconcileAllOnline();
}
}