1.4.3 - correctly handle JEI plugins that throw errors when sending runtime

Fixes #9
This commit is contained in:
embeddedt 2023-01-14 16:59:32 -05:00
parent 9e3ae9d8c0
commit 41ed759938
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ plugins {
apply plugin: 'org.spongepowered.mixin' apply plugin: 'org.spongepowered.mixin'
group = 'org.embeddedt' group = 'org.embeddedt'
version = '1.4.2' version = '1.4.3'
java { java {
archivesBaseName = 'modernfix-mc' + minecraft_version archivesBaseName = 'modernfix-mc' + minecraft_version
@ -182,4 +182,4 @@ curseforge {
addGameVersion minecraft_version addGameVersion minecraft_version
} }
} }
} }

View File

@ -40,7 +40,7 @@ public class JeiStarterMixin {
try { try {
Minecraft.getInstance().executeBlocking(() -> func.accept(plugin)); Minecraft.getInstance().executeBlocking(() -> func.accept(plugin));
} catch(CancellationException | CompletionException e) { } catch(CancellationException | CompletionException e) {
Thread.currentThread().interrupt(); throw new RuntimeException(e);
} }
}); });
} }