Skip to content

Commit

Permalink
add automatic shutdown task
Browse files Browse the repository at this point in the history
  • Loading branch information
spannercodes authored and mworzala committed Sep 1, 2023
1 parent 5a53d13 commit d68e7f7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public final class ExtensionBootstrap {
private ExtensionBootstrap(@NotNull MinecraftServer server) {
this.server = server;
extensions = new ExtensionManager(MinecraftServer.process());
MinecraftServer.getSchedulerManager().buildShutdownTask(extensions::shutdown);

extensions.start();
extensions.gotoPreInit();
Expand Down

0 comments on commit d68e7f7

Please sign in to comment.