mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-18 11:19:20 +00:00
Fix book crashing when trying to display missing items #99
This commit is contained in:
1 parent
29a1c7ed50
commit
f1fabbdb8d
1 file changed
+1
-1
@@ -77,7 +77,7 @@ public class ItemStackData {
|
||||
}
|
||||
|
||||
if(isMissingItem) {
|
||||
NBTTagCompound display = itemStack.getSubCompound("display");
|
||||
NBTTagCompound display = itemStack.getOrCreateSubCompound("display");
|
||||
display.setString("Name", "\u00A7rUnknown Item");
|
||||
NBTTagList lore = new NBTTagList();
|
||||
lore.appendTag(new NBTTagString("\u00A7r\u00A7eItem Name:"));
|
||||
|
||||
Reference in new issue
Block a user