Skip to content

Commit

Permalink
Fix the reload from crashing when JEI isn't in the environment (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongmario authored Dec 16, 2023
1 parent 6b4ae6a commit 0b9b2d2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ public static void onReload() {
.map(ModPropertyContainer::getRegistries)
.flatMap(Collection::stream)
.forEach(VirtualizedRegistry::onReload);
JeiPlugin.reload();
if (ModSupport.JEI.isLoaded()) {
JeiPlugin.reload();
}
}

@ApiStatus.Internal
Expand Down

0 comments on commit 0b9b2d2

Please sign in to comment.