fixes #420

the issue was in the setInventorySlotContents funtion
Merge pull request #422 from way2muchnoise/1.7-update

fixes #420