player inventory bugfix

Fix for item switching in hotbar