Skip to content

Commit

Permalink
Fix the reload from crashing when JEI isn't in the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongmario committed Dec 13, 2023
1 parent 0bdccde commit 2d747b5
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 2d747b5

Please sign in to comment.