Make reload thread name more useful for debugging
This commit is contained in:
parent
3695473283
commit
b0dfd4a4ef
|
|
@ -68,6 +68,8 @@ public class ClientLifecycleHandlerMixin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static int numReloads = 1;
|
||||||
|
|
||||||
private void startJEIAsync(Runnable whenFinishedCb) {
|
private void startJEIAsync(Runnable whenFinishedCb) {
|
||||||
cancelPreviousStart();
|
cancelPreviousStart();
|
||||||
Thread newThread = new Thread(() -> {
|
Thread newThread = new Thread(() -> {
|
||||||
|
|
@ -88,7 +90,7 @@ public class ClientLifecycleHandlerMixin {
|
||||||
}
|
}
|
||||||
whenFinishedCb.run();
|
whenFinishedCb.run();
|
||||||
reloadThread = null;
|
reloadThread = null;
|
||||||
}, "JEI Reload Thread");
|
}, "ModernFix JEI Reload Thread " + numReloads++);
|
||||||
newThread.setPriority(Thread.MIN_PRIORITY);
|
newThread.setPriority(Thread.MIN_PRIORITY);
|
||||||
reloadThread = newThread;
|
reloadThread = newThread;
|
||||||
newThread.start();
|
newThread.start();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user