From 631cfec46220df2be3ae677f8f58a128303502e7 Mon Sep 17 00:00:00 2001 From: Roman / Linnea Gräf Date: Wed, 31 May 2023 13:05:25 +0200 Subject: DungeonNPCProfitOverlay: make use of ItemResolutionQuerys id by name … (#700) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DungeonNPCProfitOverlay: make use of ItemResolutionQuerys id by name resolvers --- src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java index 93ea6127..aaae0031 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java @@ -138,6 +138,7 @@ public class ItemUtils { } public static List getLore(ItemStack is) { + if (is == null) return new ArrayList<>(); return getLore(is.getTagCompound()); } -- cgit