Game crashes when you are trying to close a chest and put item from your hotbar in that chest/your inventory by pressing keys 1-9
Steps to Reproduce:
1. Put an item in one of the slots of your hotbar.
2. Open a chest.
3. Close chest by pressing Escape and press key 1-9 as fast as possible (your cursor must be in chest's slots).
Game will crash.
Crash report below.
Dupe of MC-31222