diff --git a/src/main/java/io/github/gaming32/worldhost/WorldHost.java b/src/main/java/io/github/gaming32/worldhost/WorldHost.java index 4872e3b..95c667c 100644 --- a/src/main/java/io/github/gaming32/worldhost/WorldHost.java +++ b/src/main/java/io/github/gaming32/worldhost/WorldHost.java @@ -302,8 +302,7 @@ private static void init(IOFunction assetGetter) { Runtime.getRuntime().addShutdownHook( Thread.ofPlatform() .name("World Host Shutdown Thread") - .unstarted(() -> { - }) + .unstarted(WorldHost::shutdownClients) ); }