Main inventory is kinda working again. Item flags still need some update