mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-18 16:02:19 +01:00
Fix: Game crash caused by Attribute Filter #3786
This commit is contained in:
parent
aeee9f8793
commit
9a8415e97c
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue