mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-06 07:46:08 +00:00
Chunk regeneration
This commit is contained in:
@@ -231,6 +231,15 @@ public class J {
|
||||
return f;
|
||||
}
|
||||
|
||||
public static CompletableFuture sfut(Runnable r, int delay) {
|
||||
CompletableFuture f = new CompletableFuture();
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(Iris.instance, () -> {
|
||||
r.run();
|
||||
f.complete(null);
|
||||
}, delay);
|
||||
return f;
|
||||
}
|
||||
|
||||
public static CompletableFuture afut(Runnable r) {
|
||||
CompletableFuture f = new CompletableFuture();
|
||||
J.a(() -> {
|
||||
|
||||
Reference in New Issue
Block a user