From 9a8415e97ccd85828761031543a748d961c3aa5d Mon Sep 17 00:00:00 2001 From: MoarDm Date: Sat, 17 Sep 2022 19:22:22 +0300 Subject: [PATCH] Fix: Game crash caused by Attribute Filter #3786 --- .../logistics/item/filter/attribute/BookCopyAttribute.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/simibubi/create/content/logistics/item/filter/attribute/BookCopyAttribute.java b/src/main/java/com/simibubi/create/content/logistics/item/filter/attribute/BookCopyAttribute.java index d31d87383..88a3c7c87 100644 --- a/src/main/java/com/simibubi/create/content/logistics/item/filter/attribute/BookCopyAttribute.java +++ b/src/main/java/com/simibubi/create/content/logistics/item/filter/attribute/BookCopyAttribute.java @@ -56,6 +56,11 @@ public class BookCopyAttribute implements ItemAttribute { return new BookCopyAttribute(nbt.getInt("generation")); } + @Override + public String getNBTKey() { + return "book_copy"; + } + private int extractGeneration(ItemStack stack) { CompoundTag nbt = stack.getTag(); if (nbt != null && stack.getItem() instanceof WrittenBookItem) {