aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2023-05-31 13:05:25 +0200
committerGitHub <noreply@github.com>2023-05-31 13:05:25 +0200
commit631cfec46220df2be3ae677f8f58a128303502e7 (patch)
tree041e37ecc7f3f3f655cdbd0b0f868bd890bfb056 /src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java
parente89d2e7de492c523a941cadf4747d428de6e7250 (diff)
downloadnotenoughupdates-631cfec46220df2be3ae677f8f58a128303502e7.tar.gz
notenoughupdates-631cfec46220df2be3ae677f8f58a128303502e7.tar.bz2
notenoughupdates-631cfec46220df2be3ae677f8f58a128303502e7.zip
DungeonNPCProfitOverlay: make use of ItemResolutionQuerys id by name … (#700)
DungeonNPCProfitOverlay: make use of ItemResolutionQuerys id by name resolvers
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java1
1 files changed, 1 insertions, 0 deletions
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<String> getLore(ItemStack is) {
+ if (is == null) return new ArrayList<>();
return getLore(is.getTagCompound());
}