From 25bfa1d08f9618a83a3fcee27f71ac924b5d8754 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 6 Jan 2021 15:43:22 +0900 Subject: A --- .../java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java index 041c0afc..517b668b 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureChestPrice.java @@ -48,7 +48,7 @@ public class FeatureChestPrice extends SimpleFeature implements GuiBackgroundRen if (item != null) { if (item.getDisplayName() != null && item.getDisplayName().contains("Reward")) { NBTTagCompound tagCompound = item.serializeNBT().getCompoundTag("tag"); - if (tagCompound.hasKey("display", 10)) { + if (tagCompound != null && tagCompound.hasKey("display", 10)) { NBTTagCompound nbttagcompound = tagCompound.getCompoundTag("display"); if (nbttagcompound.getTagId("Lore") == 9) { -- cgit