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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user