From 8f6dbd69e89dae183fb74c1ec4e8b2d1239fa759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=9D=E5=A4=8F=E5=90=8C=E5=AD=A6?= <2411829240@qq.com> Date: Fri, 26 Apr 2024 17:43:26 +0800 Subject: [PATCH] Fix NPE 2 --- src/main/java/com/github/wohaopa/GTNHModify/RecipeTools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/wohaopa/GTNHModify/RecipeTools.java b/src/main/java/com/github/wohaopa/GTNHModify/RecipeTools.java index 39906e3..d44552d 100644 --- a/src/main/java/com/github/wohaopa/GTNHModify/RecipeTools.java +++ b/src/main/java/com/github/wohaopa/GTNHModify/RecipeTools.java @@ -365,8 +365,8 @@ public static void dumpItems(Function callback) { ItemStack itemStack = new ItemStack(itemObj); - String str0 = itemStack.getDisplayName(); try { + String str0 = itemStack.getDisplayName(); jsonObject.addProperty("display", str0); } catch (Exception e) { jsonObject.addProperty("exception", e.getMessage());