From 5cacad20fced83b45c030d613f56dce9dfe2fb75 Mon Sep 17 00:00:00 2001 From: yuesha-yc Date: Tue, 17 Dec 2024 20:49:05 +0800 Subject: [PATCH] Add null check on client level when syncing JEI --- .../java/com/teammoeg/frostedheart/compat/jei/JEICompat.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/teammoeg/frostedheart/compat/jei/JEICompat.java b/src/main/java/com/teammoeg/frostedheart/compat/jei/JEICompat.java index 2d51f45f5..f78e09097 100644 --- a/src/main/java/com/teammoeg/frostedheart/compat/jei/JEICompat.java +++ b/src/main/java/com/teammoeg/frostedheart/compat/jei/JEICompat.java @@ -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)