Skip to content

Commit

Permalink
Fixes writeable books showing no content
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokkonaut committed Nov 4, 2018
1 parent 70b3768 commit 6a14cb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class EmptyBookPageAdderComplexRemapper extends ItemStackNBTComplexRemapp

@Override
public NBTCompound remapTag(ProtocolVersion version, String locale, NetworkItemStack itemstack, NBTCompound tag) {
if (tag.getTagListOfType("pages", NBTType.LIST) == null) {
if (tag.getTagListOfType("pages", NBTType.STRING) == null) {
NBTList<NBTString> pages = new NBTList<>(NBTType.STRING);
pages.addTag(new NBTString(""));
tag.setTag("pages", pages);
Expand Down

0 comments on commit 6a14cb6

Please sign in to comment.