Make sure JEI doesn't reload without a client world
This commit is contained in:
parent
c415549f4e
commit
87958ff213
|
|
@ -82,6 +82,8 @@ public class ClientLifecycleHandlerMixin {
|
|||
|
||||
private void startJEIAsync(Runnable whenFinishedCb) {
|
||||
cancelPreviousStart();
|
||||
if(Minecraft.getInstance().level == null)
|
||||
return;
|
||||
ModernFix.LOGGER.info("Starting new JEI thread.");
|
||||
JEIReloadThread newThread = new JEIReloadThread(() -> {
|
||||
if(((JEIReloadThread)Thread.currentThread()).isStopRequested())
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user