9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-25 09:59:15 +00:00

marks AsyncGoalThread non-daemon

This commit is contained in:
hayanesuru
2025-05-01 21:01:29 -07:00
parent 35d7a185f3
commit e3731721df

View File

@@ -11,7 +11,7 @@ public class AsyncGoalThread extends Thread {
public AsyncGoalThread(final MinecraftServer server) {
super(() -> run(server), "Leaf Async Goal Thread");
this.setDaemon(true);
this.setDaemon(false);
this.setUncaughtExceptionHandler(Util::onThreadException);
this.setPriority(Thread.NORM_PRIORITY - 1);
this.start();