Fixed getEquipmentTypeFromStack being offset by one slot.