Fixed fatal bug in InventoryClickEvent.