Both knowledge books get consumed if holding them in main and off hand at the same time
The Bug
Both knowledge books are used when holding one in each hand.
Reproduce
1) Get 2 knowledge books
2) Put one in your main hand and another one in off hand
3) Right click
4) Notice how both get consumed, only the one in the main hand should have been consumed
Expected Behavior
The expected behavior would be that both knowledge books are not used when holding one in each hand. Only the one held in the main hand should be used.
Created Issue:
Both knowledge books get consumed if holding them in main and off hand at the same time
1) Get 2 knowledge books
2) Put one in your main hand and another one in off hand
3) Right click
4) Notice how both get consumed, only the one in the main hand should have been consumed
1) Get 2 knowledge books
2) Put one in your main hand and another one in off hand
3) Right click
4) Notice how both get consumed, only the one in the main hand shouldhave been consumedReproduce
1) Get 2 knowledge books
2) Put one in your main hand and another one in off hand
3) Right click
4) Notice how both get consumed, only the one in the main hand should have been consumed
Expected Behavior
The expected behavior would be that both knowledge books are not used when holding one in each hand. Only the one held in the main hand should be used.
Reproduce
1) Get 2knowledge books2) Put one in your main hand and another one in off hand
3) Right click
4) Notice how both get consumed, only the one in the main hand should have been consumed
Expected Behavior
The expected behavior would be that both knowledge books are not used when holding one in each hand. Only the one held in the main hand should be used.
The Bug
Both knowledge books are used when holding one in each hand.
Reproduce
1) Get 2 knowledge books
2) Put one in your main hand and another one in off hand
3) Right click
4) Notice how both get consumed, only the one in the main hand should have been consumed
Expected Behavior
The expected behavior would be that both knowledge books are not used when holding one in each hand. Only the one held in the main hand should be used.

Can confirm
Can confirm in 21w13a.
Video attached.
Can confirm in 21w14a.
Can confirm in 21w15a.
Can confirm in 21w16a.
Can confirm in 1.17.1.
I am able to confirm this behavior in 21w38a. Here are some extra details regarding this problem.
The Bug:
Both knowledge books are used when holding one in each hand.
Steps to Reproduce:
Expected Behavior:
The expected behavior would be that both knowledge books are not used when holding one in each hand. Only the one held in the main hand should be used.
Can confirm in 1.19.2.