Skip to content

Commit

Permalink
Revert duel hand behavior of /book command
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy committed Jul 25, 2023
1 parent ae1f158 commit c32a0f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public Commandbook() {

@Override
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {
final ItemStack item = user.getItemInHand();
final ItemStack item = Inventories.getItemInMainHand(user.getBase());
final String player = user.getName();
if (item.getType() == Material.WRITTEN_BOOK) {
final BookMeta bmeta = (BookMeta) item.getItemMeta();
Expand Down

0 comments on commit c32a0f9

Please sign in to comment.