Skip to content

Commit

Permalink
Fix shutdownClients not being called on shutdown (thanks IntelliJ)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jul 5, 2024
1 parent a56b103 commit d24a377
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/io/github/gaming32/worldhost/WorldHost.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,7 @@ private static void init(IOFunction<String, Path> assetGetter) {
Runtime.getRuntime().addShutdownHook(
Thread.ofPlatform()
.name("World Host Shutdown Thread")
.unstarted(() -> {
})
.unstarted(WorldHost::shutdownClients)
);
}

Expand Down

0 comments on commit d24a377

Please sign in to comment.