1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-09-03 03:12:46 +02:00

Improve AbstractJavaScheduler (#3326)

This commit is contained in:
Luck
2022-03-19 23:30:31 +00:00
parent 405c5c3cf9
commit fb56189f0a
4 changed files with 53 additions and 48 deletions

View File

@@ -33,6 +33,7 @@ public class FabricSchedulerAdapter extends AbstractJavaScheduler {
private final Executor sync;
public FabricSchedulerAdapter(LPFabricBootstrap bootstrap) {
super(bootstrap);
this.sync = r -> bootstrap.getServer().orElseThrow(() -> new IllegalStateException("Server not ready")).submitAndJoin(r);
}