Bug fixes for disabled slots

- Handle one row inventories correctly.
- Delay player.updateInventory so that the inventory is correctly
updated.
Formatting