Skip to content

Commit

Permalink
Fix book pile serialization error.
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdAurora committed Apr 11, 2021
1 parent 8779aea commit 669c982
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ public NbtCompound writeNbt(NbtCompound nbt) {

@Override
public void fromClientTag(NbtCompound nbt) {
Inventories.writeNbt(nbt, this.books);
Inventories.readNbt(nbt, this.books);
}

@Override
public NbtCompound toClientTag(NbtCompound nbt) {
Inventories.readNbt(nbt, this.books);
Inventories.writeNbt(nbt, this.books);
return nbt;
}
}

0 comments on commit 669c982

Please sign in to comment.