Skip to content

Commit

Permalink
Fix BookBot not signing books properly (Solves fr1kin#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
fr1kin committed Jan 27, 2021
1 parent ecfc731 commit d529327
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ private void sendBook(ItemStack stack) {
.replaceAll(NUMBER_TOKEN, "" + getBook())
.trim()));
}
sendNetworkPacket(new CEditBookPacket(stack, signBook, Hand.MAIN_HAND.ordinal()));
sendNetworkPacket(new CEditBookPacket(stack, signBook, getLocalPlayer().getSelectedIndex()));
}

@Override
Expand Down

0 comments on commit d529327

Please sign in to comment.