Fixes inventory changes getting the wrong window, closes #2187
Merge branch 'master' of github.com:PocketMine/PocketMine-MP