Skip to content

Commit

Permalink
Add null check on client level when syncing JEI
Browse files Browse the repository at this point in the history
  • Loading branch information
yuesha-yc committed Dec 17, 2024
1 parent 7b69e24 commit 5cacad2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ public static void showJEIFor(ItemStack stack) {
}

public static void syncJEI() {
if (Minecraft.getInstance().level == null)
return;
if (man == null)
return;
if (cachedInfoAdd)
Expand Down

0 comments on commit 5cacad2

Please sign in to comment.